clear security log
Syntax
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
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.