This post is older than a year. Consider some information might not be accurate anymore.
The logstash configuration can become quite complex. Some hints how to tryout if the configuration is not working.
- use the
--configtest
option - use the
--debug
option - use the stdout output plugin to check the outcome of the filter plugins
Use --configtest
C:\tools\logstash-1.5.1\bin>logstash.bat -f demo.conf --configtest
Configuration OK
logstash under Linux with --debug
option
./logstash -f demo.conf --debug
Check the outcome of input and filter using stdout
, additionally with output as json
output {
# stdout {}
stdout { codec => "json" }
}
Another codec of interest:
stdout { codec => "rubydebug" }