10

I have a problem, that no logs are written to /var/log.

-rw-r-----  1 syslog adm  6.4M May 21  2014 syslog
-rw-r-----  1 syslog adm  5.7M May 21  2014 daemon.log
-rw-r-----  1 syslog adm  494K May 21  2014 auth.log

But date and time is configured properly

Tue Apr 28 19:38:56 CEST 2015

It seems that I made a dist-upgrade 21 May of 2014. And since then I have no logs written. My system is Ubuntu 14.04 (no GUI). It has been running for 132 days without reboot.

Other log files like MySQL or nginx are up to date. Only system logs don't work.

I hope you can help me.

8

Ok, I found solution somewhere else:

sudo apt-get install --reinstall rsyslog

It seems rsyslog was removed itself at some point.

3

have you restarted the systemlogs deamon?

    sudo service rsyslog restart

this should work. This problem came for me also, i restarted this deamon, now its working fine.

0

Could try this in case something's mis-configured with rsyslog, at least before trying a full reinstall:

sudo dpkg-reconfigure rsyslog
0

I fixed it by uninstalling rsyslog sudo apt-get purge rsyslog and then reinstalling it sudo apt-get install rsyslog. In my case the permissions and ownership of the files were all correct but the syslog file was empty and all the logs were going into uncategorized.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.