Pipeline starts but data does not ingest logs from json files


(Samireddy Keerthi) #1

Below is my logstash.conf

input {
file {
path => "C:/logs/msglogin/*.json"
start_position => "beginning"
sincedb_path => "null"
codec=>"json"
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
codec => "json"
}
stdout {
codec => rubydebug
}
}

JSON data :
{"_index": "customer", "_type": "product", "_id": 1}


(Magnus B├Ąck) #2

sincedb_path => "null"

"null" never makes sense here. On Windows use "nul". On non-Windows use "/dev/null".


(Samireddy Keerthi) #3

Tried with "nul" but still the same issue


(system) #4

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