Last active
August 29, 2015 14:12
-
-
Save lobatt/befa2af9342b4bcd0d61 to your computer and use it in GitHub Desktop.
Logstash config sample for lumberjack input to work with logstash-forwarder
This file contains 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
input { | |
stdin { | |
type => "stdin-type" | |
} | |
file { | |
type => "syslog" | |
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ] | |
start_position => "beginning" | |
} | |
lumberjack { | |
# The port to listen on | |
port => 12345 | |
# The paths to your ssl cert and key | |
ssl_certificate => "/opt/ssl/logstash-forwarder.crt" | |
ssl_key => "/opt/ssl/logstash-forwarder.key" | |
# Set this to whatever you want. | |
type => "transactions" | |
} | |
} | |
output { | |
stdout { | |
codec => rubydebug | |
} | |
elasticsearch { | |
embedded => true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment