Hello all, Recently I,ve activated the Samba vfs audit module on my CentOS server. Then, I configured syslog to save the events, how open files, create directories.. in /var/log/samba/audit.log, but the same information are being stored in /var/log/messages too.. How I can configure Syslog to store this informations only in messages log file? Bellow, a part of my syslog.conf user.*;user.!warn /var/log/samba/audit.log *.info;mail.none;local5.none;authpriv.none;cron.none;auth.!=info /var/log/messages Thanks, -- Marcelo Renan Becher Linux User: #296657 pMSN: morgaux{at}hotmail.com Skype: marcelod2.gmail.com
Am Mi, den 09.11.2005 schrieb Marcelo Renan Becher um 19:51:> Recently I,ve activated the Samba vfs audit module on my CentOS server. > > Then, I configured syslog to save the events, how open files, create > directories.. in /var/log/samba/audit.log, but the same information are > being stored in /var/log/messages too.. > > How I can configure Syslog to store this informations only in messages > log file?I think your question is, how to avoid logging the evens in the messages syslog file and only to log it into your audit.log.> Bellow, a part of my syslog.conf > > user.*;user.!warn /var/log/samba/audit.log > > *.info;mail.none;local5.none;authpriv.none;cron.none;auth.!=info > /var/log/messagesAdd "user.none" to the list of facilities.priorities for the /var/log/messages target. Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 20:02:37 up 11 days, 18:02, load average: 0.67, 0.43, 0.24 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://lists.centos.org/pipermail/centos/attachments/20051109/f33e7e4f/attachment.sig>
Alexander, you're sure!! I changed my syslog.conf and now It's all working fine!! Thanks, Alexander Dalloz escreveu:> Am Mi, den 09.11.2005 schrieb Marcelo Renan Becher um 19:51: > > >>Recently I,ve activated the Samba vfs audit module on my CentOS server. >> >>Then, I configured syslog to save the events, how open files, create >>directories.. in /var/log/samba/audit.log, but the same information are >>being stored in /var/log/messages too.. >> >>How I can configure Syslog to store this informations only in messages >>log file? > > > I think your question is, how to avoid logging the evens in the messages > syslog file and only to log it into your audit.log. > > >>Bellow, a part of my syslog.conf >> >>user.*;user.!warn /var/log/samba/audit.log >> >>*.info;mail.none;local5.none;authpriv.none;cron.none;auth.!=info >>/var/log/messages > > > Add "user.none" to the list of facilities.priorities for the > /var/log/messages target. > > Alexander > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Marcelo Renan Becher Linux User: #296657 pMSN: morgaux at hotmail.com Skype: marcelod2.gmail.com GTalk: marcelod2 at gmail.com