Hi Dominik,

I guess you simply need to replace the syslog tag. You can do so by defining
your own template (probably best based on the default templates). Then,
simply replace the tag field with a constant of your liking.

Doc: http://www.rsyslog.com/doc/rsyslog_conf_templates.html
HTH
Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Dominik Zajac
> Sent: Tuesday, March 06, 2012 3:05 PM
> To: [email protected]
> Subject: [rsyslog] Adding tag to message before sending it to
> centrallogserver
> 
> Hi,
> 
> I am searching for a solution in the following szenario:
> 
> On one machine there is a squid running which can log to rsyslog but
> without the possiblilty to add a specific tag.
> This tag is required in my szenario on the central logserver to
> identify which server sent the logmessage.
> 
> I am searching for a way to configure the local rsyslog to set a
> specific tag befor sending the message to the remote logserver.
> 
> Regards,
> 
> Dominik
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/

Reply via email to