Hi, Is there any way to append some text to syslog message in syslog-ng.conf and forward to NMS system. I would like to append a pre-defined text for every syslog message coming to syslog-ng and forward to NMS. Could you tell me the possible ways of doing it. Thanks, Ravi Kumar P.
I don't know how to do this and if there is a way but I believe there are some perls scripts out there that do something similar and they could be modified. I think a lot of Honeypot servers syslog to a invalid IP and then sniff and rebuild the syslog messages with some perl scripts. You could probably make a slight modification to this script to add some text to it. -Nick On 2/22/07, Ravi Papisetti -X (rpapiset - HCL at Cisco) <rpapiset@cisco.com> wrote:
Hi,
Is there any way to append some text to syslog message in syslog-ng.conf and forward to NMS system. I would like to append a pre-defined text for every syslog message coming to syslog-ng and forward to NMS. Could you tell me the possible ways of doing it.
Thanks, Ravi Kumar P.
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
On Thu, 2007-02-22 at 11:40 -0600, Ravi Papisetti -X (rpapiset - HCL at Cisco) wrote:
Hi,
Is there any way to append some text to syslog message in syslog-ng.conf and forward to NMS system. I would like to append a pre-defined text for every syslog message coming to syslog-ng and forward to NMS. Could you tell me the possible ways of doing it.
use template, such as: destination d_nms { tcp("ipaddress" template("<$PRI> $HOST $MSG predefined text\n")); };
-- Bazsi
participants (3)
-
Balazs Scheidler
-
Nick Baronian
-
Ravi Papisetti -X (rpapiset - HCL@Cisco)