Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

file (Analytics)

Syntax

Hierarchy Level

Description

Enable the logging of queue or traffic monitoring statistics in a local file. This statement does not enable monitoring.

Default

This feature is disabled by default.

Options

filename

Specify a filename for storing queue and traffic monitoring statistics in the Comma-separated Values (CSV) format. The file is stored in the /var/log/ directory of your device.

If you do not specify a filename, the data is not stored in a file.

Note:

In Junos OS Release 13.2X51-D15 or later, you configure a single filename to store both queue and traffic monitoring statistics. In Junos OS Release 13.2X51-D10 and earlier, you configure separate files for storing monitoring data, one for queue statistics, and another for traffic statistics.

files number-of-files

Specify the number of files to store locally. After the number of files with the maximum file size is reached, the system starts over and writes the data to the first file.

  • Range: 2 to 1,000 files.

size size

Configure the file size in megabytes (MB).

  • Syntax: xm to specify MB.

  • Range: 10 to 4095 MB

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 13.2.

Release History Table
Release
Description
13.2X51-D15
In Junos OS Release 13.2X51-D15 or later, you configure a single filename to store both queue and traffic monitoring statistics.
13.2X51-D10
In Junos OS Release 13.2X51-D10 and earlier, you configure separate files for storing monitoring data, one for queue statistics, and another for traffic statistics.