Skip to content

Instantly share code, notes, and snippets.

@victorhooi
Created December 19, 2011 03:34
Show Gist options
  • Save victorhooi/1495262 to your computer and use it in GitHub Desktop.
Save victorhooi/1495262 to your computer and use it in GitHub Desktop.
Logstash Receiver Configuration
input {
amqp {
debug => true
durable => true
exchange_type => "topic"
format => "plain"
host => "localhost"
key => "*"
name => "e1"
password => "guest"
port => 5672
type => "varlogs"
user => "guest"
}
}
output {
# Emit events to stdout for easy debugging of what is going through
# logstash.
stdout { }
file {
path => "/path/to/logs/%{@source_host}/%{@source_path}"
}
gelf [
chunksize => 1024
facility => "logstash-gelf"
host => "localhost"
level => "INFO" # How do I get the original log levels here?
port => 12201
sender => "%{@source_host}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment