Страница 1 из 1

логи auth, messages

Добавлено: 2010-05-27 12:34:31
CTOPMbI4
Не пишутся логи в auth.log так же в messages
Вроде за логи отвечает syslog.conf

Код: Выделить всё

!mpd
*.*                                             /var/log/mpd.log
*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
security.*                                      /var/log/security
auth.info;authpriv.info                         /var/log/auth.log
mail.info                                       /var/log/maillog
lpr.info                                        /var/log/lpd-errs
ftp.info                                        /var/log/xferlog
cron.*                                          /var/log/cron
*.=debug                                        /var/log/debug.log
*.emerg                                         *
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info                                   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*                                            /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*                                            @loghost
# uncomment these if you're running inn
# news.crit                                     /var/log/news/news.crit
# news.err                                      /var/log/news/news.err
# news.notice                                   /var/log/news/news.notice
!ppp
*.*                                             /var/log/ppp.log
!named
*.* /var/log/named.log
!*
+ еще newsyslog.conf

Код: Выделить всё

# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
/var/log/all.log                        600  7     *    @T00  J
/var/log/amd.log                        644  7     100  *     J
/var/log/auth.log                       600  7     100  *     JC
/var/log/console.log                    600  5     100  *     J
/var/log/cron                           600  3     100  *     JC
/var/log/daily.log                      640  7     *    @T00  JN
/var/log/debug.log                      600  7     100  *     JC
/var/log/kerberos.log                   600  7     100  *     J
/var/log/lpd-errs                       644  7     100  *     JC
/var/log/maillog                        640  7     *    @T00  JC
/var/log/messages                       644  5     100  *     JC
/var/log/monthly.log                    640  12    *    $M1D0 JN
/var/log/pflog                          600  3     100  *     JB    /var/run/pflogd.pid
/var/log/ppp.log        root:network    640  3     100  *     JC
/var/log/security                       600  10    100  *     JC
/var/log/sendmail.st                    640  10    *    168   B
/var/log/weekly.log                     640  5     1    $W6D0 JN
/var/log/wtmp                           644  3     *    @01T05 B
/var/log/xferlog                        600  7     100  *     JC

Код: Выделить всё

ps -ax|grep syslog
  966  ??  Ss     0:00.08 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s

Re: логи auth, messages

Добавлено: 2010-05-28 20:46:27
FreeBSP
секцию mpd перенести вниз
и я бы раскомментил all.log - но это по вкусу

Код: Выделить всё

*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
security.*                                      /var/log/security
auth.info;authpriv.info                         /var/log/auth.log
mail.info                                       /var/log/maillog
lpr.info                                        /var/log/lpd-errs
ftp.info                                        /var/log/xferlog
cron.*                                          /var/log/cron
*.=debug                                        /var/log/debug.log
*.emerg                                         *
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info                                   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
*.*                                            /var/log/all.log # еще я бы раскомментировал это - иногда полезно бывает
# uncomment this to enable logging to a remote loghost named loghost
#*.*                                            @loghost
# uncomment these if you're running inn
# news.crit                                     /var/log/news/news.crit
# news.err                                      /var/log/news/news.err
# news.notice                                   /var/log/news/news.notice
!ppp
*.*                                             /var/log/ppp.log

!named
*.* /var/log/named.log

!mpd
*.*                                             /var/log/mpd.log

# непонятно что 
!*

Re: логи auth, messages

Добавлено: 2010-05-29 14:27:19
CTOPMbI4
Все отлично логи пишутся! Поставил all.log Много интересного увидел. :smile:
Респект. FreeBSP

Re: логи auth, messages

Добавлено: 2010-05-29 17:54:46
FreeBSP
all.log - он как инфернет. есть все, но в состоянии помойки. проигрывает правильно настроенному логированию от программ по всем параметрам, но нередко позволяет понять что именно надо настраивать

кстати, по умолчанию он ротатится раз в сутки, BZ2ипается и сохраняются семь последних архивов - эт о описано в newsyslog.conf