Skip to content

Instantly share code, notes, and snippets.

@cultofmetatron
Last active August 29, 2015 14:06
Show Gist options
  • Save cultofmetatron/7e0a82f97c2887fc930e to your computer and use it in GitHub Desktop.
Save cultofmetatron/7e0a82f97c2887fc930e to your computer and use it in GitHub Desktop.
logstash-config
input {
stdin {
type => "stdin-type"
}
file {
type => "syslog"
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog"]
start_position => "beginning"
}
file {
type => "postgresql"
path => ["/var/log/postgresql/*.log" ]
start_position => "beginning"
}
}
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