Hello,
I want to add a field and fill it with the value of the index name but cut it after the first underscore and before the third underscore. I have an Elasticsearch in- and output and want to reindex with wildcard in index name so that all indices containing the pattern are fetched by the input.
What I have:
{ "_index": "xxx_yyy_value_zzz" }
What I want:
{ "_index": "xxx_yyy_value_zzz", "_source": { "field": "value" } }
Can you also transmit the value or the whole input index name to the Elasticsearch Output index name when you have wildcards for input indices?
Thanks