traffic-statistics (Services Analytics)
Syntax
traffic-statistics { file filename { files number-of-files; size size; } interval interval; }
Hierarchy Level
[edit services analytics]
Description
Enable the logging of traffic statistics in a local file. This statement does not enable traffic statistics monitoring.
To enable the monitoring of traffic statistics, configure the traffic-statistics
configuration statement at the [edit
services analytics interfaces]
hierarchy level.
Default
This feature is disabled by default.
Options
file filename | Specify a filename for storing the traffic statistics in the JavaScript Object Notification (JSON) 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. |
files number-of-files | Specify the number of files to store locally. After the number files with the maximum file size is reached, the system starts over and writes the data to the first file.
|
interval interval | Configure the polling interval in seconds. Note:
You can configure the polling interval for traffic statistics globally for all interfaces only. Due to limitations and variations in the hardware capability of different devices, you might see a difference in value between the actual interval and configured interval.
|
size size | Configure the file size in megabytes (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.