Skip to content

Instantly share code, notes, and snippets.

@chriseckhardt
Last active January 1, 2016 05:39
Show Gist options
  • Save chriseckhardt/8100057 to your computer and use it in GitHub Desktop.
Save chriseckhardt/8100057 to your computer and use it in GitHub Desktop.
logstashy stuff
# sender:/etc/logstash/shipper.conf
input {
stdin {
debug => true
type => "host-agent-input"
}
}
output {
rabbitmq {
debug => true
host => "192.168.50.40"
port => 5672
ssl => false
user => "logstash"
password => "logstash"
exchange => "logstash-exchange"
vhost => "/logstash"
exchange_type => "direct"
key => "logstash-routing-key"
durable => true
persistent => true
}
}
# indexer:/etc/logstash/central.conf
input {
rabbitmq {
host => "192.168.50.40"
port => 5672
ssl => false
user => "logstash"
password => "logstash"
vhost => "/logstash"
exchange => "logstash-exchange"
key => "logstash-routing-key"
exclusive => false
durable => true
auto_delete => false
type => "logstash-indexer-input"
}
}
output {
elasticsearch {
debug => true
bind_host => "192.168.50.40"
cluster => "logstash"
embedded => false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment