[syslog-ng] Rewrite Hostname Field of Syslog Header
Jerry Bell
jerry at nrdx.com
Fri Jul 23 20:27:23 CEST 2010
I don't believe there is a native way to do this in syslog-ng, but
there is a method here:
http://www.syslog.org/logged/pot-of-syslog-ng-tricks-version-3/ that
describes using a template to basically rewrite any part of the syslog
message. That example is for rewriting the facility/priority, it should
give you enough to go on to rewrite the host field.
Regards,
Jerry
On 7/23/2010 2:06 PM, lecalcot wrote:
> Hi,
>
> I'm wondering if syslog-ng is capable of rewriting the hostname field
> in the header of syslogs as they are forwarded to a remote loghost. Is
> this possible?
>
> Thanks,
> Lee
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100723/5149def7/attachment.htm
More information about the syslog-ng
mailing list