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> <transport> <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 |
Clears full database. Use |
| 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
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.
transport option introduced in Junos OS Release 25.4R1.