Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from BlackMaria/xmmp_logstash_example.cf
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save bugcy013/11407717 to your computer and use it in GitHub Desktop.

Select an option

Save bugcy013/11407717 to your computer and use it in GitHub Desktop.
output {
# <SNIP> other outputs <SNIP>
#
# Ping me if anything is about to explode, or if any important massage pass by
#
xmpp {
tags => 'warn_me'
host => "ejabberd.example.io"
message => "time='%{timestamp}', host='%{source_host}', tags='%{tags}',path='%{source_path}', type='%{type}', field='%{fields}' message='%{message}',"
password => 'mypasswerd'
user => "[email protected]"
users =>"[email protected]"
}
#
# periodically send system updates to the ops chat room
#
xmpp {
tags => [ 'updates' ]
host => "ejabberd.example.io"
message => "'message='%{@message}' time='%{@timestamp}', host='%{@source_host}' , tags='%{@tags}',path='%{@source_path}', type='%{@type}', field='%{@fields}"
password => 'mypasswerd'
rooms => "[email protected]/logstash"
user => "[email protected]"
}
}
output {
elasticsearch {
host => "172.16.30.151"
}
# irc {
# channels => "#bugcy013"
# host => "irc.freenode.net"
# nick => "Machine-151"
#}
xmpp {
host => "172.16.30.68"
message => "message='%{message}'"
password => 'ceres123'
users => "[email protected]"
user => "[email protected]"
}
xmpp {
host => "172.16.30.68"
message => "message='%{message}'"
password => 'ceres123'
rooms => "[email protected]/logstash"
user => "[email protected]"
}
stdout { codec => rubydebug }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment