[syslog-ng] Destination program behavior
Gaetan Lord
syslog-ng at gaetanlord.ca
Thu Oct 16 07:16:15 CEST 2008
>> My script is meant to run once and exit. Could it be the problem.
>
>Yes absolutely. You cannot exit after each log message, that is not permitted and explains why you are getting the SIGPIPE errors. You have to run in a loop, reading and processing >messages from stdin until you get an eof. See old postings to this list. Here's a pointer to one that gives an outline bash script that you can build upon.
>
>https://lists.balabit.hu/pipermail/syslog-ng/2008-March/011512.html
Thank for the information. The script didn't work at first, at least
under SuSE 10 with the native syslog-ng version 1.6.8
I compile and tried with version 2.0.9, and it work. :)
I do have one more question for you. For now, I cannot replace the
current syslog-ng V1.6.8. Can I run a second instance
of syslog-ng, in this case version 2.0.9. The second one will have a
different configuration file, and basically only run
my destination program rule.
Thanks again
--
Helen Hayes - "Age is not important unless you're a cheese."
More information about the syslog-ng
mailing list