- 论坛徽章:
- 0
|
我架设好后,syslog服务器可以收到pix日志,但是messages和pix.log(我自己建的文件)同时会记录,这是为什么呢?还有就是,我想把所有日志文件单独放在一个分区,如我的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
红色的两个文件同时记录pix传过来的日志?还有就是我在syslog.conf文件中,把日志文件的路径改成/log/pix.log。后日志就不记录了,不知道为什么呢,我把另一个盘的分区挂在log下了,即使我不挂另一个分区,也不行。好像日志文件必须在/var/log下才记录的了,请大家指教? |
|