syslog: Memory buffered logging

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

syslog: Memory buffered logging

Jonas Davidsson
syslog.conf:
     # Keep a copy of all logging in a 32k memory buffer named "debug"
     *.debug                                                 :32:debug

#>pkill syslogd; syslogd -s /var/run/syslogd.sock

#>logger This is a test

#>syslogc -s /var/run/syslogd.sock debug
No such log

I have done everything required according to the man pages, yet syslogc lists no available logs.
Why oh why?

Reply | Threaded
Open this post in threaded view
|

Re: syslog: Memory buffered logging

Damien Miller
On Fri, 10 Feb 2006, Jonas Davidsson wrote:

> syslog.conf:
>      # Keep a copy of all logging in a 32k memory buffer named "debug"
>      *.debug                                                 :32:debug
>
> #>pkill syslogd; syslogd -s /var/run/syslogd.sock

This is wrong. Look at the options that syslogd is normally started with,
you have missed at least one.

> #>logger This is a test
>
> #>syslogc -s /var/run/syslogd.sock debug
> No such log

Works for me. Maybe you have spaces instead of tabs in your syslog.conf?

[root@fuyu root]# ps awwwwx | grep syslogd
27380 ??  Is      0:00.01 syslogd: [priv] (syslogd)
 9721 ??  I       0:00.14 syslogd -s /var/run/syslogd.sock -a /var/named/dev/log -a /var/empty/dev/log
[root@fuyu root]# grep :debug /etc/syslog.conf
*.debug                                                 :32:debug
[root@fuyu root]# syslogc debug | wc -l
     240


-d

Reply | Threaded
Open this post in threaded view
|

Re: syslog: Memory buffered logging

Jonas Davidsson
Damien Miller wrote:
> On Fri, 10 Feb 2006, Jonas Davidsson wrote:
>> syslog.conf:
>>      # Keep a copy of all logging in a 32k memory buffer named "debug"
>>      *.debug                                                 :32:debug
>>
> Works for me. Maybe you have spaces instead of tabs in your syslog.conf?

Yes, this was the problem. I just copied and pasted from the man page example.