Hello, Should it be possible to modify the value of $MSG or $MSGONLY (with a tool like sed for example) ? Thx in advance. ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com
On Tue, 2006-12-12 at 17:50 +0100, news gonzo news gonzo wrote:
Hello, Should it be possible to modify the value of $MSG or $MSGONLY (with a tool like sed for example) ?
not directly, you could do something similar with regexp match variables, but it is not yet ideal: filter f_match { match("(something happened to this host ([0-9\.]+))"); }; destination d_file { file("/var/log/messages" template("$DATE $HOST $2\n"); }; The value for $2 is the value matched by the second parenthesis in the last regexp matched. -- Bazsi
Hi, Is there any sort of mechanism in syslog-ng for dealing with repeated log messages? For example, something that prints the firsts instance of a log and then gives a count of the duplicates received over a subsequent period of time. I've had a look in the documentation and couldn't find anything but I thought would be best to ask. Thanks Anthony
participants (3)
-
anthony lineham
-
Balazs Scheidler
-
news gonzo news gonzo