< Home

FAQ About Logs

This section provides frequently asked questions about log and their answers.

How Can I Query Logs About User Operations on the Web UI?

To view logs about operations on the web UI, you can run the following command in the system view to enable the log function.

info-center enable
info-center loghost 10.10.10.11
info-center source SHELL channel 9 log state  on
info-center source HTTPD channel 9 log state  on
info-center source HTTPD channel 9 log level  debugging
info-center source SHELL channel 9 log level informational 

Then, you can view user web operation logs in the file storage path on the FW.

Logs SHELL/5/CMDRECORD are recorded in files in hda1:/log.

In addition, you can view the logs in the log buffer. You can run the following command in the system view to enable the log function.
info-center enable
info-center loghost 10.10.10.11
info-center source SHELL channel 4 log state  on
info-center source HTTPD channel 4 log state  on
info-center source HTTPD channel 4 log level  debugging
info-center source SHELL channel 4 log level informational 

Logs with the task=HTPN field indicate user operations on the web UI. Logs with the task=WC0 field indicate user operations on the CLI.

What Does "facility" Mean in the Information Center loghost Configuration?

facility is a field defined in the syslog protocol and used to identify the device that generates a log. After the facility parameter is configured with the info-center loghost command, the FW records the local value in logs. Users can filter the logs with the local field on the log server that supports the facility field. The following table lists the facility Numerical Code field values defined in the syslog protocol and supported by the FW. local use 0-7 is user-defined. Users can plan the local value for the log information of a device. The default value is local 7.

Table 1

Numerical Code

Facility

16

local use 0 (local0)

17

local use 1 (local1)

18

local use 2 (local2)

19

local use 3 (local3)

20

local use 4 (local4)

21

local use 5 (local5)

22

local use 6 (local6)

23

local use 7 (local7)

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic