Last active
April 12, 2016 22:06
-
-
Save rmoff/862d0ceea223aa7283244b1b27594941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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