[prev in list] [next in list] [prev in thread] [next in thread]
List: syslog-ng
Subject: [syslog-ng]syslog-ng messages sent to outside prog
From: "Jay Guerette" <JayGuerette () pobox ! com>
Date: 2001-11-27 7:39:20
[Download RAW message or body]
A modified code snippet that will remove the leading <nn> facility/priority
indicator when shlepping log lines to an external proggie:
<code>
#! /bin/bash
# this line enables the extended globbing in bash to make this possible
shopt -s extglob
while read LOGLINE
do
echo ${LOGLINE/+([0-9<>])} | mail wakemeup@noon.ok
done
</code>
--
I hope that at this artificial inflation of a small species into the absolute
measure of things one is still permitted to laugh?
_______________________________________________
syslog-ng maillist - syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic