< Home

sec-log timestamp format-date

Function

The sec-log timestamp format-date command sets the timestamp format of security logs sent to a third-party log host to be YYYY-MM-DD hh:mm:ss.

The undo sec-log timestamp format-date command restores the default timestamp format (mm dd yyyy hh:mm:ss) for sending security logs to a third-party log host.

Format

sec-log timestamp format-date

undo sec-log timestamp format-date

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If the timestamp format of the third-party log host is YYYY-MM-DD hh:mm:ss, run the sec-log timestamp format-date command to change the timestamp format of security logs sent to the third-party log host to be the same as that of the log host.

This command is supported since V600R007C20SPC300, and takes effect on the following security logs such as threat logs, content logs, URL filtering logs, mail filtering logs, audit logs, user activity logs, sandbox detection logs, HiSec Insight interworking logs, and policy matching logs.

Example

# Sets the timestamp format of security logs sent to a third-party log host to be YYYY-MM-DD hh:mm:ss.

<sysname> system-view
[sysname] sec-log timestamp format-date
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >