In the past, my log host received logs from one remote host, so syslog-ng.conf had separate destinations spelled out for the log host and the remote host. Now I am adding more remote hosts to the LAN, and I want to record the same information from the new hosts. I am trying to add the following lines to a syslog-ng.conf file that has worked in the past. I commented out the cron entry for the existing remote host. destination remote-logs.cron { file("/var/log/$HOST/cron.log"); }; log { source(s_tcp); filter(f_cron); destination(remote-logs.cron); } The first line works, but the second line causes a syntax error. What am I doing wrong?
On Sun, Sep 08, 2002 at 11:10:12AM -0400, Gorm Jensen wrote:
In the past, my log host received logs from one remote host, so syslog-ng.conf had separate destinations spelled out for the log host and the remote host. Now I am adding more remote hosts to the LAN, and I want to record the same information from the new hosts. I am trying to add the following lines to a syslog-ng.conf file that has worked in the past. I commented out the cron entry for the existing remote host. destination remote-logs.cron { file("/var/log/$HOST/cron.log"); };
log { source(s_tcp); filter(f_cron); destination(remote-logs.cron); }
The first line works, but the second line causes a syntax error. What am I doing wrong?
It's the missing semicolon at the end of the log line. -- f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. -Anon.
Thanks, Nate. (blush) ----- Original Message ----- From: "Nate Campi" <nate@campin.net> To: <syslog-ng@lists.balabit.hu> Cc: "Gorm Jensen" <gjensen@magma.ca> Sent: Sunday, September 08, 2002 8:54 PM Subject: Re: [syslog-ng]Remote Logging
On Sun, Sep 08, 2002 at 11:10:12AM -0400, Gorm Jensen wrote:
In the past, my log host received logs from one remote host, so syslog-ng.conf had separate destinations spelled out for the log host and the remote host. Now I am adding more remote hosts to the LAN, and I want to record the same information from the new hosts. I am trying to add the following lines to a syslog-ng.conf file that has worked in the past. I commented out the cron entry for the existing remote host. destination remote-logs.cron { file("/var/log/$HOST/cron.log"); };
log { source(s_tcp); filter(f_cron); destination(remote-logs.cron); }
The first line works, but the second line causes a syntax error. What am I doing wrong?
It's the missing semicolon at the end of the log line. -- f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. -Anon.
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (2)
-
Gorm Jensen
-
Nate Campi