Syslog is empty

7 posts / 0 new
Last post
#1 Sat, 03/24/2012 - 09:28
jvieille

Syslog is empty

My syslog file remains empty. Webmin shows no error at startup

Thanks for help

Sat, 03/24/2012 - 10:54
andreychek

Howdy,

Which file is it that's empty?

And what distribution/version is it that you're using?

-Eric

Sat, 03/24/2012 - 11:18
jvieille

the file /var/log/syslog is empty (and all logrotate archves)

The distrib is Ubuntu Linux 10.04.2 Webmin is 3.90.gpl GPL

A simular config (Debain Lenny) runs OK

Sat, 03/24/2012 - 22:05
andreychek

Yeah, syslog should be functioning on an Ubuntu server.

It's possible something went awry with the syslog daemon though, and if that's the case, it may be possible to fix it by imply restarting syslog.

What happens if you run this command:

/etc/init.d/rsyslog restart

After that, do you see any data in your /var/log/syslog file?

-Eric

Sun, 03/25/2012 - 01:28
jvieille

Thanks for the indications

root@ks311625:~# /etc/init.d/rsyslog restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service rsyslog restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart rsyslog
rsyslog start/running, process 25822

then syslog contains the following

Mar 25 08:15:43 ks311625 kernel: imklog 4.2.0, log source = /proc/kmsg started.
Mar 25 08:15:43 ks311625 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="25822" x-info="http://www.rsys$
Mar 25 08:15:43 ks311625 rsyslogd: rsyslogd's groupid changed to 103
Mar 25 08:15:43 ks311625 rsyslogd: rsyslogd's userid changed to 101
Mar 25 08:15:43 ks311625 rsyslogd-2039: Could no open output file '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]
Mar 25 08:16:01 ks311625 CRON[25830]: (root) CMD (/usr/local/rtm/bin/rtm 0 > /dev/null 2> /dev/null)
Mar 25 08:17:01 ks311625 CRON[25895]: (root) CMD (/usr/local/rtm/bin/rtm 0 > /dev/null 2> /dev/null)
Mar 25 08:17:01 ks311625 CRON[25894]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sun, 03/25/2012 - 12:35
andreychek

Howdy,

Okay, that all looks good now.

Are you having any more problems?

-Eric

Sun, 03/25/2012 - 16:21
jvieille

Seems OK now I reboot the server, still loging.

thanks!

Topic locked