Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear security log

Syntax

Description

Delete the event log.

Options

all

Clear all audit event logs stored in the device memory.

all-logical-systems-tenants

Clear all audit event logs for all the logical systems and tenant systems.

destination-address

Clear audit event logs with the specified destination address.

destination-port

Clear audit event logs with the specified destination port.

event-id

Clear audit event logs with the specified event identification number.

failure

Clear failed audit event logs.

file

Clear security logs in binary format.

interface-name

Clear audit event logs with the specified interface.

newer-than

Clear audit event logs newer than the specified date and time.

older-than

Clear audit event logs older than the specified date and time

policy-name

Policy name filter.

process

Clear audit event logs with the specified process that generated the event.

protocol

Clear audit event logs generated through the specified protocol.

query

Clear logs in database.

report

Clears full database. Use start-time and stop-time options at the clear security log report hierarchy to specify a time range and clear logs within the defined time interval. If you do not specify the start-time and stop-time options, the command clears all the security logs from reporting database.

severity

Clear audit event logs generated with the specified severity.

source-address

Clear audit event logs with the specified source address.

source-port

Clear audit event logs with the specified source port.

stream

Clear security logs stream info.

success

Clear successful audit event logs.

transport Clears the transport-level statistics for configured log streams. This option resets the dynamic counters such as logs delivered, logs undelivered, bytes sent, and bytes undelivered to zero. Use this option when you want to restart monitoring of log delivery performance for a specified stream or all streams.
username

Clear audit event logs generated for the specified user.

Required Privilege Level

clear

Sample Output

clear security log all

Release Information

Command introduced in Junos OS Release 11.2.

all-logical-systems-tenants option introduced in Junos OS Release 19.3R1.

transport option introduced in Junos OS Release 25.4R1.