I have a watcher that sends output to another index named "newindex". How can I set the dynamic value to target index such as date? Following approach doesn't work.
"actions": {
"index_payload": {
"index": {
"index": "newindex-{now/d}",
"doc_type": "docType2",
"execution_time_field": "trigger_event.triggered_time"
}
}
}
And it gives following error.
"last_execution": {
"timestamp": "2017-09-25T21:12:46.413Z",
"successful": false,
"reason": "InvalidIndexNameException[Invalid index name [newindex-{now/d}], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]]"
}
I have even tried with newindex-%{+YYYY.MM.dd}
too. It too didn't work. Can you please help on how to do it?