Need to
check the router log, to understand their work, EFS0 then we'll set a log server, the windows
system must we all already know how to set up, today we are going to talk about the Linux system, describes how to configure thesystem
log function.
One, setting up in LINUX
Here to execute the command to the root identity:
#mkdir /var/log/Quidway
#touch /var/log/Quidway/config
#touch /var/log/Quidway/security
Two, as root editor /etc/syslog.conf
1, add the following selector/action pairs:
# Quidway configuration messages
Local4.crit /var/log/Quidway/config
# Quidway security messages
Local5.notice /var/log/Quidway/security
In 2, the matters needing attention
(1) notes only allows independent lines and characters
in the beginning #;
(2) selection, combination of actions must be in a tab delimited and can
not enter spaces;
(3) there shall be no extra spaces in the file name;
(4) when the
log file config and the
establishment of the security and/etc/syslog.conf files are modified, should be through the implementation of the #ps -ae grep syslogd #kill -HUP | 147 gave
syslogd a HUP signal to the syslogdto read its buy EFS4 configuration file /etc/syslog.conf.
Three, in the router needs to be set
Show loghost view log host;
No loghost canceled log host;
Loghost loghost-ip-address setup log host;
After the
above settings, you can automatically save the router system log.
没有评论:
发表评论