Is there a way to target a daily index from Watcher's index_payload action
something like this
"actions" : { "index_payload" : { "transform": { ... }, "index" : { "index" : "my-index-{{year}}.{{month}}.{{day}}", "doc_type" : "my-type" } } }
Hey,
yes, you can use date math for your index names.
I'll move this over to the watcher forum as well.
--Alex
ok thanks for the hint. I managed to find a slightly better reference. https://www.elastic.co/guide/en/elasticsearch/reference/current/date-math-index-names.html
so that gives an index definition that looks like this
"index": { "index": "<my-index-{now/d}>", "doc_type": "my-type" }
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.