Hello.
I want to use date variable in input, like below
input { elasticsearch{ hosts => ["localhost"] index => "test-%{+yyyy-MM-dd}" codec => "json" } }
but it occur error like this.
Error: [404] {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [test-%{+yyyy-MM-dd}]","resource.type":"index_or_alias","resource.id":"test-%{+yyyy-MM-dd}","index_uuid":"na","index":"test-%{+yyyy-MM-dd}"}],"type":"index_not_found_exception","reason":"no such index [test-%{+yyyy-MM-dd}]","resource.type":"index_or_alias","resource.id":"test-%{+yyyy-MM-dd}","index_uuid":"na","index":"test%{+yyyy-MM-dd}"},"status":404}
How can I use?
Thank you