< Home

firewall log syslog header

Function

The firewall log syslog header command sets the log header format of session logs in syslog format.

Format

firewall log syslog header { default [ timestamp { utc | local | none } ] | host-name | none }

Parameters

Parameter Description Value
default

Indicates the default syslog header format.

-

timestamp

Indicates the timestamp of log headers.

-

utc

Indicates that the timestamp is the Coordinated Universal Time (UTC).

-

local

Indicates that the timestamp is the local time (affected by the setting of the time zone and daylight saving time).

-

none

Indicates that syslog headers contain no timestamp information.

-

host-name

Indicates that syslog headers contain only the device name.

-

none

Indicates that the syslogs do not contain a header.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If you set the log header to the default format but do not specify the timestamp, the device uses UTC as the default timestamp.

Example

# Set the format of syslog headers to the default format and the timestamp to local time.

<sysname> system-view
[sysname] firewall log syslog header default timestamp local
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >