- 論壇徽章:
- 0
|
我架設(shè)好后,syslog服務(wù)器可以收到pix日志,但是messages和pix.log(我自己建的文件)同時(shí)會(huì)記錄,這是為什么呢?還有就是,我想把所有日志文件單獨(dú)放在一個(gè)分區(qū),如我的sdb5,我掛在要根目錄下的log下,在syslog.conf指名文件路徑,日志記錄不到,這是為什么呢?配置文件如下:
[root@log /]# more /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;news.none;authpriv.none;cron.none /var/log/message
s
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
#local1.* /log/4506.log
local1.* /var/log/4506.log
local2.* /var/log/6509.log
local4.debug /var/log/pix.log
local3.* /var/log/3845.log
#
# INN
#
news.=crit /var/log/news/news.crit
news.=err /var/log/news/news.err
news.notice /var/log/news/news.notice
[root@log /]#[root@log /]# more /etc/sysconfig/syslog
# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd( for more details
SYSLOGD_OPTIONS="-r -x -m 0"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd( for more details
KLOGD_OPTIONS="-x"
You have new mail in /var/spool/mail/root
紅色的兩個(gè)文件同時(shí)記錄pix傳過(guò)來(lái)的日志?還有就是我在syslog.conf文件中,把日志文件的路徑改成/log/pix.log。后日志就不記錄了,不知道為什么呢,我把另一個(gè)盤(pán)的分區(qū)掛在log下了,即使我不掛另一個(gè)分區(qū),也不行。好像日志文件必須在/var/log下才記錄的了,請(qǐng)大家指教? |
|