[syslog-ng]Problem with program() destination

Tamas MEZEI syslog-ng@lists.balabit.hu
Tue, 25 Jan 2005 16:28:03 +0100


>         $file=fopen("/tmp/dhcp.log","w+");

Try changing "w+" to "a".

Mode "w+" means that the filepointer is set to the BEGINNING of the file 
so every separate flow coming from stdin is overwriting the file again 
and again. Mode "a" is append mode (filepointer at the end, appending to 
the file).

Tamas