Supported Platforms
Related Documentation
- LN, M, MX, PTX, SRX, T Series
- Accounting Options Overview
- Accounting Options Configuration
- Configuring Accounting-Data Log Files
- Configuring the Interface Profile
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
- LN, M, MX, PTX, T Series
- Understanding Device Management Functions in Junos OS
Configuring the Filter Profile
A filter profile specifies error and statistics information collected and written to a file. A filter profile must specify counter names for which statistics are collected.
To configure a filter profile, include the filter-profile statement at the [edit accounting-options] hierarchy level:
To apply the filter profile, include the accounting-profile statement at the [edit firewall filter filter-name] hierarchy level.
To configure a filter profile, perform the tasks described in the following sections:
Configuring the Counters
Statistics are collected for all counters specified in the filter profile. To configure the counters, include the counters statement at the [edit accounting-options filter-profile profile-name] hierarchy level:
Configuring the File Information
Each accounting profile logs its statistics to a file in the /var/log directory.
To configure which file to use, include the file statement at the [edit accounting-options filter-profile profile-name] hierarchy level:
You must specify a filename for the filter profile that has already been configured at the [edit accounting-options] hierarchy level.
![]() | Note: If the configured file size or transfer interval is exceeded, Junos OS closes the file and starts a new one. By default, the transfer interval value is 30 minutes. If the transfer interval is not configured, Junos OS closes the file and starts a new one when the file size exceeds its configured value or the default transfer interval value exceeds 30 minutes. To avoid transferring files every 30 minutes, specify a different value for the transfer interval. |
Configuring the Interval
Each filter with an accounting profile enabled has statistics collected once per interval time specified for the accounting profile. Statistics collection time is scheduled evenly over the configured interval. To configure the interval, include the interval statement at the [edit accounting-options filter-profile profile-name] hierarchy level:
![]() | Note: The minimum interval allowed is 1 minute. Configuring a low interval in an accounting profile for a large number of filters might cause serious performance degradation. |
The range for the interval statement is 1 through 2880 minutes. The default is 30 minutes.
Related Documentation
- LN, M, MX, PTX, SRX, T Series
- Accounting Options Overview
- Accounting Options Configuration
- Configuring Accounting-Data Log Files
- Configuring the Interface Profile
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
- LN, M, MX, PTX, T Series
- Understanding Device Management Functions in Junos OS
Published: 2014-12-07
Supported Platforms
Related Documentation
- LN, M, MX, PTX, SRX, T Series
- Accounting Options Overview
- Accounting Options Configuration
- Configuring Accounting-Data Log Files
- Configuring the Interface Profile
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
- LN, M, MX, PTX, T Series
- Understanding Device Management Functions in Junos OS