Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

file

Syntax

Hierarchy Level

Description

CAUTION:

Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.

Configure the trace file options. Name of the file to receive the output of the tracing operation.

In Junos OS Release 21.4R1, we’ve deprecated the file configuration statement and we might remove it completely in a future release.

Options

filename

Name of file in which to write trace information

files

Maximum number of trace files

  • Default: 3

  • Range: 2 through 1000

match

Regular expression for lines to be logged

no-world-readable

Don't allow any user to read the log file

size

Maximum trace file size

  • Default: 128000

  • Range: 10240 through 1073741824

world-readable

Allow any user to read the log file

Required Privilege Level

trace

Release Information

Statement introduced in Junos OS Release 12.1X44-D10.