Hi,
I am trying to collapse daily indices to monthly but when i try to match the count of both old and new indices, it does not match.
This is my current logstash config look like.
input {
  elasticsearch {
    hosts => [ "xx.xx.xx.xx" ]
    index => "aws-prod-2017.09.*"
    size => 1000
    scroll => "5m"
    docinfo => true
  }
}
output {
  elasticsearch {
    hosts => [ "xx.xx.xx.xx" ]
    index => "%{[@metadata][_type]}-%{+YYYY-MM}"
    document_type => "%{[@metadata][_type]}"
    document_id => "%{[@metadata][_id]}"
  }
  stdout {
    codec => "dots"
  }
}
The counts seems to be off by 200-400. What am i doing wrong here? Any other way to do this?
--
Niraj