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}