Created
July 12, 2017 14:54
-
-
Save faxm0dem/d84ab49685e9b7e2201f129f24a822b0 to your computer and use it in GitHub Desktop.
syslog-ng sucks less with ii
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
# | |
@version: 3.9 | |
block source ii ( | |
channel('#riemann') | |
server('chat.freenode.net') | |
basedir('/tmp/ii') | |
) | |
{ | |
channel { | |
source { | |
file( | |
"`basedir`/`server`/`channel`/out" | |
flags(no-parse) | |
); | |
}; | |
parser { | |
csv-parser( | |
delimiters(' ') | |
columns(tmp.date,MSG) | |
flags(greedy) | |
); | |
}; | |
parser { | |
date-parser( | |
template("${tmp.date}") | |
format('%s') | |
); | |
}; | |
}; | |
}; | |
log { | |
source { | |
ii( | |
channel("#riemann") | |
server("chat.freenode.net") | |
); | |
}; | |
destination { | |
file( | |
"/var/tmp/riemann-irc.$YEAR-$MONTH-$DAY" | |
); | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment