Skip to content

Instantly share code, notes, and snippets.

@faxm0dem
Created July 12, 2017 14:54
Show Gist options
  • Save faxm0dem/d84ab49685e9b7e2201f129f24a822b0 to your computer and use it in GitHub Desktop.
Save faxm0dem/d84ab49685e9b7e2201f129f24a822b0 to your computer and use it in GitHub Desktop.
syslog-ng sucks less with ii
#
@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