It is done only once when the configuration file is evaluated. I think it is obvious that the rewrite is done every time :-) On 08/29/2016 09:16 AM, Robert Blayzor wrote:
On Aug 29, 2016, at 11:38 AM, Evan Rempel <erempel@uvic.ca> wrote:
@module confgen context(rewrite) name(r_myself) exec("/bin/hostname")
I guess the only remaining question on this is a performance one.
Would the exec be done for each and every log message or is it done only once?
-- Robert inoc.net!rblayzor XMPP: rblayzor.AT.inoc.net PGP Key: 78BEDCE1 @ pgp.mit.edu ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-- Evan Rempel erempel@uvic.ca Senior Systems Administrator 250.721.7691 Data Centre Services, University Systems, University of Victoria