Skip to content

Instantly share code, notes, and snippets.

@lobatt
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lobatt/befa2af9342b4bcd0d61 to your computer and use it in GitHub Desktop.
Save lobatt/befa2af9342b4bcd0d61 to your computer and use it in GitHub Desktop.
Logstash config sample for lumberjack input to work with logstash-forwarder
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