Skip to content

Instantly share code, notes, and snippets.

@rpetre
Created May 1, 2015 13:40
Show Gist options
  • Select an option

  • Save rpetre/83f3bad5184629c81a3e to your computer and use it in GitHub Desktop.

Select an option

Save rpetre/83f3bad5184629c81a3e to your computer and use it in GitHub Desktop.
Logstash debug environment
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