Re: can't seem to get syslog working



"munky" schrieb

Basically if I use syslogd as automatically started up by
my EL4 system I get nothing logged at all, however if I kill
off syslogd and manually restart it then logging works fine
(so my program and syslog.conf are fine!).

Hmm, so it has to do with your system. What is "EL4" exactly?
You might look in a *.os.linux.* newsgroup appropriate to your
system.


I had wondered (however unlikely!) if it was something to do
with the -m 0 option (which is set in my /etc/sysconfig/syslog)
but manually starting syslogd works whether I've added this
option or not.

My system uses syslog-ng (syslog new generation), but IIRC the
option -m 0 suppresses the "MARK" entries that syslog generates
on itself if there is nothing logged (just to show that it is
still alive).


When I got logging working by manually launching syslogd
the logging will also stop if I then try and restart syslogd
with "/sbin/service syslog restart" so it definitely seems
to be something to do with the startup mechanism on my system.

Indeed :-). No messages in this case? No entry in syslog?
Does dmesg say anything in this case?

Unfortunately I don't actually know how
syslogd is launched on EL4 - if I do a find in /etc
the only references are in syslog.conf and /etc/sysconfig/syslog.

AFAIK there should be a mention of it in /etc/init.d. On my system
(an ancient SUSE 9.3) there is a script /etc/init.d/syslog that
starts
syslog and is itself referenced by a link in /etc/init.d/rcX.d
where X are the runlevels that start syslog (almost all do).


You'll have to check with somebody who's more knowledgeable with
your distro "EL4", I'm afraid.


HTH
Martin




.



Relevant Pages

  • Re: cant seem to get syslog working
    ... EL4 is Redhat Enterprise Linux 4. ... daemon syslogd $SYSLOGD_OPTIONS ... I wonder if my problem has anything to do with the "daemon" function that seems to be part of /etc/init.d/functions - when I killed syslogd I restarted it simply by /sbin/syslogd I'll see if I can spot anything in the daemon function. ...
    (alt.os.linux)
  • RE: Logging Stops after few minutes
    ... are you sure that syslogd stops working after only 2 ... Syslogd only chews on the processor when it has something to do. ... If you're certain that it isn't logging events that it should: ... If you look at my FTP command it should ...
    (freebsd-questions)
  • Re: syslogd question (modifying syslogd.c)
    ... Solaris seems to have more feature-full logging facilities. ... And in 'syslogd': ... by an identifier in the following format: ... In syslog, the logging priority ...
    (RedHat)
  • Re: Logging TCP events
    ... sending those events to syslogd. ... syslogd is a relatively slow logging mechanism, ... Syslog-NG can use TCP connectivity (I use it to SSH tunnel logging ... either the IPTABLES definitions or if doing the TCPDUMP, ...
    (comp.security.firewalls)
  • Re: remote syslog
    ... To enable this [network logging on the server] you have to specify the ... The default behavior is that syslogd ...
    (Fedora)