I have a scenario where I need to pick 4 to 5 years older data using Logstash. Below is the config file
input {
file {
path => [ "cricsheet-xml-master\0.7\5*.xml" ]
type => "CricketData"
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
}
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
But when I run the logstash, it is just starting but no data is stashed in elasticsearch.