Skip to content

Instantly share code, notes, and snippets.

@smb
Created July 25, 2014 13:02
Show Gist options
  • Save smb/2f779031965ad33d9bf3 to your computer and use it in GitHub Desktop.
Save smb/2f779031965ad33d9bf3 to your computer and use it in GitHub Desktop.
irssi logstash config
input {
file {
path => "/home/.../irclogs/*/#*/*.log"
start_position => "end"
type => "irssi_logs"
}
}
filter {
if [type] == "irssi_logs" {
grok {
match => { "message" => "(?<timestamp>%{HOUR}:%{MINUTE}|%{TIMESTAMP_ISO8601})%{SPACE}[\<]*[@ +*]%{SPACE}(?<nick>[^> ]*)[\> ]+%{SPACE}(?<text>.*)" }
}
grok {
match => { "path" => ".*/(?<network>.*)/(?<channel>.*)/(?<date>.*).log" }
}
}
}
output {
stdout { codec => rubydebug }
elasticsearch { host => localhost }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment