RE: [syslog-ng] time_sleep()
I can't post the whole thing since its too big but I am posting the relevant portion of it: options { sync (0); time_reopen (10); log_fifo_size (1000); long_hostnames (on); use_dns (yes); use_fqdn (no); create_dirs (no); owner(mdirect); group(mdirect); keep_hostname (yes); log_msg_size(20480); }; The rest of the file is just a bunch of source, destination, filter and log entries for various stuff Also: [root@clxd01md syslog-ng]# strings /sbin/syslog-ng | grep time_sleep time_sleep So looks like there could be some time_sleep code in the binary at least... -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of John Morrissey Sent: April 25, 2006 1:48 PM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] time_sleep() On Tue, Apr 25, 2006 at 01:00:17PM -0700, Vaibhav Goel wrote:
I did exactly that...
[root@clxd01md syslog-ng]# /etc/init.d/syslog-ng restart Shutting down system logger: [ OK ] Starting system logger: syntax error at 20 Parse error reading configuration file, exiting. (line 20) [FAILED] [root@clxd01md syslog-ng]# cat /etc/syslog-ng/syslog-ng.conf | grep time time_reopen (10); time_sleep(30);
[root@clxd01md syslog-ng]# /sbin/syslog-ng -V syslog-ng 1.6.10
Am I doing something wrong?
Strange. I backported the time_sleep change to the Debian package I'm running (1.6.9) so I can't speak for the pristine 1.6.10 source, but it's been working fine for us. I glanced at the 1.6.10 tarball and see some time_sleep code there. Could you post your entire syslog-ng.conf? john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__ _______________________________________________ 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
On Tue, Apr 25, 2006 at 01:52:30PM -0700, Vaibhav Goel wrote:
The rest of the file is just a bunch of source, destination, filter and log entries for various stuff
Also: [root@clxd01md syslog-ng]# strings /sbin/syslog-ng | grep time_sleep time_sleep
So looks like there could be some time_sleep code in the binary at least...
True. You posted the output of syslog-ng -V before (1.6.10), and I definitely see the code in the final 1.6.10 tarball. strings(1) shows time_sleep text on my working syslog-ng binaries, and I can't find any reason it wouldn't be compiled in. Sorry, I'm not sure what to say. Baszi? john -- John Morrissey _o /\ ---- __o jwm@horde.net _-< \_ / \ ---- < \, www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__
On Tue, 2006-04-25 at 17:12 -0400, John Morrissey wrote:
On Tue, Apr 25, 2006 at 01:52:30PM -0700, Vaibhav Goel wrote:
The rest of the file is just a bunch of source, destination, filter and log entries for various stuff
Also: [root@clxd01md syslog-ng]# strings /sbin/syslog-ng | grep time_sleep time_sleep
So looks like there could be some time_sleep code in the binary at least...
True. You posted the output of syslog-ng -V before (1.6.10), and I definitely see the code in the final 1.6.10 tarball. strings(1) shows time_sleep text on my working syslog-ng binaries, and I can't find any reason it wouldn't be compiled in.
Sorry, I'm not sure what to say. Baszi?
Hmmm. this patch seems to have been missed in some way. Can you check if this makes it work? diff -u -r1.58.4.7 cfg-grammar.y --- cfg-grammar.y 13 Mar 2006 23:34:13 -0000 1.58.4.7 +++ cfg-grammar.y 30 Apr 2006 18:51:28 -0000 @@ -630,6 +630,7 @@ | KW_USE_FQDN '(' yesno ')' { configuration->use_fqdn = $3; } | KW_USE_DNS '(' yesno ')' { configuration->use_dns = $3; } | KW_TIME_REOPEN '(' NUMBER ')' { configuration->time_reopen = $3; } + | KW_TIME_SLEEP '(' NUMBER ')' { configuration->time_sleep = $3; } | KW_TIME_REAP '(' NUMBER ')' { configuration->time_reap = $3; } | KW_LOG_FIFO_SIZE '(' NUMBER ')' { configuration->log_fifo_size = $3; } | KW_GC_BUSY_THRESHOLD '(' NUMBER ')' { configuration->gc_busy_threshold = $3; } -- Bazsi
participants (3)
-
Balazs Scheidler
-
John Morrissey
-
Vaibhav Goel