Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear security log

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear security log
<all>
<all-logical-systems-tenants>
<destination-address>
<destination-port>
<event-id>
<failure>
<file>
<interface-name>
<newer-than>
<older--than>
<policy-name>
<process>
<protocol>
<query>
<report>
<severity>
<source-address>
<source-port>
<stream>
<success>
<username>

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

Clear on-box reports for system traffic logs.

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.

username

Clear audit event logs generated for the specified user.

Required Privilege Level

clear

Sample Output

clear security log all

content_copy zoom_out_map
user@host> clear security log all
7905 security log events cleared

Release Information

Command introduced in Junos OS Release 11.2.

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

footer-navigation