Skip to content

Instantly share code, notes, and snippets.

@timoyuen
Forked from BlackMaria/xmmp_logstash_example.cf
Created March 20, 2014 16:40
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 timoyuen/9668184 to your computer and use it in GitHub Desktop.
Save timoyuen/9668184 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 => "logstash@example.io"
users =>"support@ejabberd.example.io"
}
#
# 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 => "logstash_alerts@conference.ejabberd.example.io/logstash"
user => "logstash@example.io"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment