[syslog-ng] Writing to a named Pipe
Pedro Rafael Alves Simoes
pedro.a.simoes at gmail.com
Thu Jan 22 16:26:20 CET 2009
Hello,
In my syslog-ng configuration I'm writing messages to named pipes
which name is given dynamically by the $PRI macro:
destination d_test {
pipe("/tmp/$PRI.log");
};
All the possible PRI.log pipes were created previously with mkfifo.
With this configuration the messages aren't being written to the
pipes. It simply does nothing. Doing a strace on the syslog-ng
process, it shows an error :
open("/tmp/$PRI.log", O_RDWR|O_NONBLOCK|O_NOCTTY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
It seems that the PRI macro isn't being interpolated in the string.
Any help?
More information about the syslog-ng
mailing list