Hello everyone,
I'm moving old logs of my ElasticSearch 2.2.0 to an higher version of ElasticSearch 5.0.2 using Logstash. I write the following configuration :
input
{
elasticsearch
{
hosts => ["localhost:9200"]
index => "old-logs*"
}
}
output
{
elasticsearch
{
hosts => ["localhost:9201"]
index => "old-logs..." # looking for index with the date of indexing #
}
stdout { codec => rubydebug }
}
The moving is working but I would like to know how I can move the logs by date of indexing?
for exemple I've got the index old-log-01-12-2015, old-log-02-12-2016, etc... in ES 2.2.0 I wouls like to have the same index in ES 5.0.2
Thank you
J.S