Skip to content

Inconsistent date math support for reindexing api (source.index vs. dest.index) #23533

@ppf2

Description

@ppf2

5.2

When running the reindex from remote api, if the source index name(s) are specified without encoding, it will complain about the /. So for the source, it expects date math support index names to be URI encoded.

    "index": [
      "%3Cfilebeat-%7Bnow%2Fd-1d%7D%3E",
      "%3Cfilebeat-%7Bnow%2Fd%7D%3E"
    ]

But in the dest section of the reindex from remote api, when specifying URI encoded index names with date math support, it will throw the exception (because it expects the non-URI encoded version of the name):

        "type": "invalid_index_name_exception",
        "reason": "Invalid index name [%3Cfilebeat-consolidated-%7Bnow%7D%3E], must be lowercase",

It will be nice for source.index and dest.index to be consistent when date math is used. If this is by design, it will be good to document this.

Metadata

Metadata

Labels

:Distributed Indexing/ReindexIssues relating to reindex that are not caused by issues further down>bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions