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 stream file

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear security log query
clear security log stream
file <file-name>

Description

  • clear security log query—Clear the content of the database.

  • clear security log stream file—Clear the content of the current log file.

  • clear security log stream file logical-system LSYS1 —Clear the content of the current log file for logical system.

  • clear security log stream file tenant TSYS1 —Clear the content of the current log file for tenant system.

Required Privilege Level

clear

Output Fields

The following outputs are occurred in two conditions:

  • Clear log stream file successfully, when there is log file.

  • Clear log stream file error or does not exits, when there is no log file.

Sample Output

clear security log stream file LSYS_f1.bin logical-system LSYS1

content_copy zoom_out_map
user@host> clear security log stream file LSYS_f1.bin logical-system LSYS1 
Request to clear log stream file succeeds

clear security log stream file TSYS_f1.bin tenant-system TSYS1

content_copy zoom_out_map
user@host> clear security log stream file TSYS_f1.bin tenant-system TSYS1 
Request to clear log stream file succeeds

Release Information

Command introduced in Junos OS Release 15.1X49-D70.

The logical-system and tenant options are introduced in Junos OS Release 19.2R1.

footer-navigation