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:
Rewrite Hostname Field of Syslog Header 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