Logstash not sending data to elastic search

Hi my config file is executed without any error. It's below

input {
file { type => "jetorders" path => "/home/app/jetorders*.csv" start_position => "beginning" sincedb_path => "/home/app/inputorders.log" } file { type => "jetitems" path => "/home/app/jetitems*.csv" start_position => "beginning" sincedb_path => "/home/app/inputitems.log" } }
filter {
if [type] == "jetorders" { json { source => "message" } } if [type] == "jetitems" { json { source => "message" } } }
output {
if [type] == "jetorders" { elasticsearch { index => "jetorders" hosts => ["http://xyz:9200"] } } if [type] == "jetitems" { elasticsearch { index => "jetitems" hosts => ["http://xyz:9200"] } } }

My sincedb-path files are showing 0 0 0 0 not sure why. And the logstash.log file shows that pipeline has started without any errors but I don't see anything in my elasticsearch.

Thanks.

Use a stdout { codec => rubydebug } output to reduce complexity and make sure the input files are being read as expected. When that works you can introduce the elasticsearch output.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.