[syslog-ng]program trouble
Wendell Turner
wturner@halcyon.com
Sun, 21 Jan 2001 19:44:48 -0800 (PST)
> I have a problem with the program destination when having the
> following in my syslog-ng.conf file
>
> destination dhcp { program("script-program"); };
>
> it will run the script-program once when reloading syslog-ng
> not when matching the filter.
I've been using a C program rather than a script. It seems that
syslog-ng loads the program once, and sends input to it whenever
the filter matches. That is, the C program must
while ((r = read(0, buffer, Buf_Len)) > 0)
{
process input
}
I suppose your script would need to do the same thing.
Wendell Turner