I have tried this code. my template is creating properly but index are not generating from the file. this is logstash.conf file. i am guessing it is 'sincedb' issue but I am confused. OS : windows 10, ELK version : 6.5.4
input {
file {
path => "C:\elk\logstash-6.5.4\logstash-6.5.4\config\review_data.json"
start_position => "beginning"
sincedb_path => "null"
codec => "json"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => ["http://localhost:9200/"]
index => "location_test"
template =>"C:\elk\logstash-6.5.4\logstash-6.5.4\config\template.json"
template_name=>"datareview"
template_overwrite => true
}
}