Created
May 1, 2015 13:40
-
-
Save rpetre/83f3bad5184629c81a3e to your computer and use it in GitHub Desktop.
Logstash debug environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| metrics:/etc/logstash # cat ls-debug | |
| #!/bin/bash | |
| echo "Wait for logstash to start, then paste test lines as needed" | |
| echo "To finish, press ctrl-C , ctrl-D" | |
| /opt/logstash/bin/logstash -f /etc/logstash/debug-conf.d/ -l /var/log/logstash/logstash-debug.log | |
| metrics:/etc/logstash # ls debug-conf.d/ | |
| 00_stdin_input.conf 31_nginx.conf 51_useragent.conf 52_querystring.conf 99_stdout_output.conf | |
| metrics:/etc/logstash # cat debug-conf.d/00_stdin_input.conf | |
| input { | |
| stdin { | |
| # type => "nginx" | |
| } | |
| } | |
| metrics:/etc/logstash # cat debug-conf.d/99_stdout_output.conf | |
| output { | |
| stdout { | |
| codec => "rubydebug" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment