Skip to content

Instantly share code, notes, and snippets.

@rmoff
Last active April 12, 2016 22:06
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 rmoff/862d0ceea223aa7283244b1b27594941 to your computer and use it in GitHub Desktop.
Save rmoff/862d0ceea223aa7283244b1b27594941 to your computer and use it in GitHub Desktop.
input {
irc {
channels => "#mychan"
host => "chat.freenode.net"
nick => "ivor_bigun"
catch_all => true
get_stats => true
}
}
output {
stdout { codec => "rubydebug" }
elasticsearch {
hosts => "localhost"
index => "logstash-irc-%{+YYYY.MM.dd}"
}
}
input {
irc {
channels => "#obihackers"
host => "chat.freenode.net"
nick => "ivor_bigun"
catch_all => true
get_stats => true
}
}
output {
stdout { codec => "rubydebug" }
kafka { topic_id => "irc"
bootstrap_servers => "localhost:2181"
}
}
input {
kafka {
zk_connect => 'localhost:2181'
topic_id => 'irc'
consumer_id => "test01"
auto_offset_reset => "smallest"
}
}
output {
stdout { codec => "rubydebug" }
elasticsearch {
hosts => "localhost"
index => "logstash-irc-%{+YYYY.MM.dd}"
}
}
input {
kafka {
zk_connect => 'localhost:2181'
topic_id => 'irc'
consumer_id => "test02-geoip-test"
auto_offset_reset => "smallest"
}
}
filter {
if (! ([geoip] =~ /.+/ )) and ([host] =~ /.+/) {
grok { match => ["host","%{IP:host}"]
tag_on_failure => []
overwrite => [ "host" ]
}
geoip { source => "host"
}
}
}
output {
stdout { codec => "rubydebug" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment