Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm having troubles with CentOS release 6.4 (Final). I'm looking for log files in /var/log/ and I'm obviously missing two files:

  • /var/logs/messages
  • /var/log/secure

I was checking if rsyslog is running (service rsyslog status) and it's OK. My rsyslog config file is called /etc/rsyslog.conf, folder /etc/rsysconf.d/ is empty.

Can anyone shed some light on what's going on?

share|improve this question
    
lsof | grep messages? –  c4f4t0r May 12 at 19:10
    
the result of lsof | grep messages is blank. No response. And I'm getting the same result for lsof | grep secure –  Tom Hert May 12 at 19:13
    
this discussion might be useful –  user2720864 Jul 16 at 21:20

1 Answer 1

up vote 0 down vote accepted

check if have any rule for store in /var/log/messages or /var/log/secure in /etc/rsyslog.conf like

# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none  /var/log/messages

# The authpriv file has restricted access.
authpriv.*   /var/log/secure

if does not have , add this line and restart your rsyslog service.

/etc/init.d/rsyslog restart

or

service rsyslog restart
share|improve this answer
    
I have there following lines: # Log anything (except mail) of level info or higher. # Don't log private authentication messages! *.info;mail.none;authpriv.none;cron.none /var/log/messages# The authpriv file has restricted access. authpriv.* /var/log/secure –  Tom Hert May 12 at 20:09

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.