- Table of Contents
-
- 20-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-SNMP commands
- 04-RMON commands
- 05-NETCONF commands
- 06-EAA commands
- 07-Process monitoring and maintenance commands
- 08-Flow log commands
- 09-Packet capture commands
- 10-Mirroring commands
- 11-Fast log output commands
- 12-UCC commands
- 13-SQA commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-Fast log output commands | 57.63 KB |
Fast log output commands
The following compatibility matrixes show the support of hardware platforms for fast log output:
Hardware series |
Model |
Product code |
Fast log output compatibility |
WX1800H series |
WX1804H-PWR |
EWP-WX1804H-PWR-CN |
Yes |
WX2500H series |
WX2508H-PWR-LTE WX2510H-PWR WX2510H-F-PWR WX2540H WX2540H-F WX2560H |
EWP-WX2508H-PWR-LTE EWP-WX2510H-PWR EWP-WX2510H-F-PWR EWP-WX2540H EWP-WX2540H-F EWP-WX2560H |
Yes |
MAK series |
MAK204 MAK206 |
EWP-MAK204 EWP-MAK206 |
Yes |
WX3000H series |
WX3010H WX3010H-X-PWR WX3010H-L-PWR WX3024H WX3024H-L-PWR WX3024H-F |
EWP-WX3010H EWP-WX3010H-X-PWR EWP-WX3010H-L-PWR EWP-WX3024H EWP-WX3024H-L-PWR EWP-WX3024H-F |
Yes: · WX3010H-X-PWR · WX3010H-L-PWR · WX3024H-L-PWR No: · WX3010H · WX3024H · WX3024H-F |
WX3500H series |
WX3508H WX3508H WX3510H WX3510H WX3520H WX3520H-F WX3540H WX3540H |
EWP-WX3508H EWP-WX3508H-F EWP-WX3510H EWP-WX3510H-F EWP-WX3520H EWP-WX3520H-F EWP-WX3540H EWP-WX3540H-F |
Yes |
WX5500E series |
WX5510E WX5540E |
EWP-WX5510E EWP-WX5540E |
Yes |
WX5500H series |
WX5540H WX5560H WX5580H |
EWP-WX5540H EWP-WX5560H EWP-WX5580H |
Yes |
Access controller modules |
LSUM1WCME0 EWPXM1WCME0 LSQM1WCMX20 LSUM1WCMX20RT LSQM1WCMX40 LSUM1WCMX40RT EWPXM2WCMD0F EWPXM1MAC0F |
LSUM1WCME0 EWPXM1WCME0 LSQM1WCMX20 LSUM1WCMX20RT LSQM1WCMX40 LSUM1WCMX40RT EWPXM2WCMD0F EWPXM1MAC0F |
Yes |
Hardware series |
Model |
Product code |
Fast log output compatibility |
WX1800H series |
WX1804H-PWR WX1810H-PWR WX1820H WX1840H |
EWP-WX1804H-PWR EWP-WX1810H-PWR EWP-WX1820H EWP-WX1840H-GL |
No |
WX3800H series |
WX3820H WX3840H |
EWP-WX3820H-GL EWP-WX3840H-GL |
Yes |
WX5800H series |
WX5860H |
EWP-WX5860H-GL |
Yes |
customlog format
Use customlog format to enable fast log output.
Use undo customlog format to restore the default.
Syntax
customlog format { attack-defense | dpi | nat { cmcc | telecom | unicom } | packet-filter | session }
undo customlog format { attack-defense | dpi | nat | packet-filter | session } *
Default
Fast log output is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
attack-defense: Enables fast log output for the attack defense module.
dpi: Enables fast log output for a DPI-related module.
nat: Enables fast log output in a specific format for the NAT module.
· cmcc: Specifies the CMCC format.
· telecom: Specifies the TELECOM format.
· unicom: Specifies the UNICOM format.
packet-filter: Enables fast log output for the packet filter module.
session: Enables fast log output for the session management module.
wlan: Enables fast output of the event notification logs of the WLAN module.
Usage guidelines
The fast log output feature enables fast output of logs to log hosts.
Typically, logs generated by a service module are first sent to the information center, which then outputs the logs to the specified destination (such as to log hosts). When fast log output is configured, logs of service modules are sent directly to log hosts instead of to the information center. Compared to outputting logs to the information center, fast log output saves system resources.
Fast log output, flow log, and information center are exclusive from one another. When the customlog format command is configured, the specified service module uses only the fast log output method. For more information about flow log, see "Configuring flow log." For more information about the information center, see System Management Configuration Guide.
To output NAT logs to a log host, you must specify the log format required by the log host in the customlog format and customlog host commands.
Logs of the AFT, attack defense, DPI, packet filter, and session management modules can be output only in one format. You do not need to specify the format for these logs.
Examples
# Enable fast log output in CMCC format.
[Sysname] customlog format cmcc
customlog host
Use customlog host to configure fast log output parameters.
Use undo customlog host to remove the fast log output configuration.
Syntax
customlog host { hostname | ipv4-address | ipv6 ipv6-address } [ port port-number ] export { attack-defense | cmcc-sessionlog | cmcc-userlog | dpi | packet-filter | session | telecom-sessionlog | telecom-userlog | unicom-sessionlog | unicom-userlog } *
undo customlog host { hostname | ipv4-address | ipv6 ipv6-address } [ port port-number ]
Fast log output parameters are not configured.
Views
System view
Predefined user roles
network-admin
Parameters
hostname: Specifies a log host by its name, a case-insensitive string of 1 to 253 characters. The host name can contain letters, digits, hyphens (-), underscores (_), and dots (.).
ipv4-address: Specifies a log host by its IPv4 address.
ipv6 ipv6-address: Specifies a log host by its IPv6 address.
port port-number: Specifies the port number of the log host. The value range is 1 to 65535, and the default is 514. The setting must be the same as the port number configured on the log host. Otherwise, the log host cannot receive logs.
export: Specifies a source module for fast log output.
attack-defense: Outputs logs of the attack defense module to the log host.
cmcc-sessionlog: Outputs NAT session logs in CMCC format to the log host.
cmcc-userlog: Outputs NAT444 user logs in CMCC format to the log host.
dpi: Outputs logs of a DPI-related module to the log host.
packet-filter: Outputs logs of the packet filter module to the log host.
session: Outputs logs of the session management module to the log host.
telecom-sessionlog: Outputs NAT session logs in TELECOM format to the log host.
telecom-userlog: Outputs NAT444 user logs in TELECOM format to the log host.
unicom-sessionlog: Outputs NAT session logs in UNICOM format to the log host.
unicom-userlog: Outputs NAT444 user logs in UNICOM format to the log host.
Usage guidelines
The customlog host command takes effect only after the customlog format command is configured.
To output NAT logs to a log host, you must specify the log format required by the log host in the customlog format and customlog host commands.
Examples
# Output NAT session logs and NAT444 user logs in CMCC format to the log host at 1.1.1.1.
[Sysname] customlog host 1.1.1.1 port 1000 export cmcc-sessionlog cmcc-userlog
customlog timestamp
Use customlog timestamp localtime to configure the timestamp of fast output logs to show the system time.
Use undo customlog timestamp localtime to restore the default.
Syntax
undo customlog timestamp localtime
Default
The timestamp of fast output logs shows the Greenwich Mean Time (GMT).
Views
System view
Predefined user roles
network-admin
Examples
# Configure the timestamp of fast output logs to show the system time.