syslog.conf

    1. input {
    2. syslog {
    3. type => "system-syslog"
    4. host => "0.0.0.0"
    5. port => "514"
    6. }
    7. }
    8. output {
    9. stdout {
    10. codec => "json"
    11. codec => "rubydebug"
    12. }
    13. }

    运行命令

    ./logstash -f ../config/conf/syslog.conf