Thanks for replying. My config is:
input{
file{
codec => json_lines
sincedb_path => "dev/null"
path => "file.json"
start_position => "beginning"
}
}
output{
stdout{codec => ruby_debug}
}
But when I run "logstash --verbose -f file.conf" all I get is:
Registering file input {path=>["file.json"], :level=>:info}
Pipeline started {:level=>:info}
Logstash startup completed
Nothing else, file not processed.
I switched json_lines to json in my config and I get:
A plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::File path=...
Error: string not matched {level=>:error}
I'm using Logstash-1.5.4.
This post seems to indicate theat json_lines does not work with file input: https://github.com/logstash-plugins/logstash-codec-json_lines/issues/7
Any ideas?