Many netizens need to check the vro logs to learn about how Huawei routers save system logs. In this case, we need to set up a log server, for windows systems, you must already know how to set it. Today we will talk about Linux systems and how to configure the system log function. Www.2cto.com 1. in LINUX, run the command as root: # mkdir/var/log/Quidway # touch/var/log/Quidway/config # touch/var/log/Quidway/security 2. edit/etc/syslog as root. conf1, add the following selector/action pairs: # Quidway configuration messageslocal4.crit/var/log/Quidway/config # Quidway security messageslocal5.notice/var/log/Quidway/security
2. Note: www.2cto.com (1) the comment can only start with a single line and start with a character #. (2) The selection and action combination must be separated by a Tab character rather than a space. (3) no extra space is allowed after the file name; (4) When the log file config and security are created and/etc/syslog. after the conf file is modified, execute # ps-AE | grep syslogd # kill-HUP 147 to send syslogd an HUP signal so that syslogd can re-read its configuration file/etc/syslog. conf. 3. Set show loghost to view the log host on the vro; no loghost to cancel the log host; loghost-ip-address to set the log host; after the preceding settings, you can automatically save system logs for the vro.