Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am not getting any logs in auth.log, kern.log, syslog or any other log files on my 12.04 ubuntu server. There is also no rsyslog.conf if it should be there by default.

rsyslogd is not running as well.

How can I debug this & get the log files written normally as they should be ?

Edit:

I just found that rsyslog was not installed at all by default on my ubuntu 12.04. After installing it via apt-get I can see log files being written.

But is it really like I need to manually install rsyslog to see the logs, otherwise I won't be getting anything in the logs ??

share|improve this question
    
You can use also systemd with it's jurnal.. –  neutrinus Mar 2 at 13:28

2 Answers 2

Have you tried (re)starting rsyslogd manually? If yes pleas epost the output.

Is there space left on the device hosting /var/log/ and is it mounted rw?

mount | column -t

Does

dmesg

contain anything that might relate to this issue?

Added Question #2

But is it really like I need to manually install rsyslog to see the logs, otherwise I won't be getting anything in the logs ??

Rsyslog is the default log processor on Ubuntu 12.04 and is usually installed by default! I experienced this especially with customized installations and minimal server/VPS setups of some hosting providers. The same applies to manual installations by using the tool debootstrap.

On a stock Ubuntu 12.04 installation rsyslogd is already running and configured for basic operation! So in general you don't have to install it manually ...

share|improve this answer
    
Thanks for the efforts kindly see my update in the question. –  user01 Mar 2 at 12:37

Modify file as below:

/etc/syslog.conf
*.err;kern.debug;daemon.notice;mail.crit;auth.info      /var/log/messages

Restart the deamon.

bash-4.1# /usr/sbin/rsyslogd

or

bash-4.1# /etc/init.d/syslog stop
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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