Hi ,
I'm using logstash 2.2.0 to upload json files to elasticsearch (version 2.2).
I already used the conf files of the logstash I built to upload data , and it worked !!
Now when I'm trying again it's stuck , the conf file and log file are the same.
This is my conf file:
input {
file{
path => ["/tmp/1.json"]
type => "json"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter{
json {
source => "message"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
hosts => localhost
index => index_tmp
}
}
Why ?
BR,
Chen