[syslog-ng] Trying to write syslog to /opt
Johnny Lapenna
johnny.lapenna at gmail.com
Tue Aug 17 22:13:17 CEST 2010
Hi I'm trying to write the following log to /opt/ in which I am unable to:
in syslog-ng.conf I have the following:
#filter f_local { facility(local0, local1, local2, local3,
# local4, local5, local6, local7); };
filter f_local { facility( local1, local2, local3,
local4, local5, local7); };
filter f_sol { facility(local0); };
# Log SOL messages in a separate log
destination solmessages { file("/opt/solLOG/sol.log"); };
log { source(src); filter(f_sol); destination(solmessages); };
#destination solmessages { file("/var/log/sol.log"); };
#log { source(src); filter(f_sol); destination(solmessages); };
The above does not work but if I comment out:
#destination solmessages { file("/opt/solLOG/sol.log"); };
#log { source(src); filter(f_sol); destination(solmessages); };
destination solmessages { file("/var/log/sol.log"); };
log { source(src); filter(f_sol); destination(solmessages); };
The log is written to /var/log/sol.log, is there a reason why the
destination path could only be /var/log/?
Thank you in advance.
Johnny
More information about the syslog-ng
mailing list