Related Documentation
- ACX, M, MX, PTX, T Series
- Accounting Options Overview
- Understanding Device Management Functions in Junos OS
- M, MX, T Series
- Accounting Options Configuration
- Configuring the Interface Profile
- M, MX, PTX, T Series
- Configuring Accounting-Data Log Files
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
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. For more information about firewall filters, see the Junos® OS Network Interfaces.
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: The limit on the total number of characters per line in a log file equals 1023. If this limit is exceeded, the output written to the log file is incomplete. Ensure that you limit the number of counters or requested data so that this character limit is not exceeded. |
![]() | 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
- ACX, M, MX, PTX, T Series
- Accounting Options Overview
- Understanding Device Management Functions in Junos OS
- M, MX, T Series
- Accounting Options Configuration
- Configuring the Interface Profile
- M, MX, PTX, T Series
- Configuring Accounting-Data Log Files
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles
Modified: 2015-06-30
Related Documentation
- ACX, M, MX, PTX, T Series
- Accounting Options Overview
- Understanding Device Management Functions in Junos OS
- M, MX, T Series
- Accounting Options Configuration
- Configuring the Interface Profile
- M, MX, PTX, T Series
- Configuring Accounting-Data Log Files
- Configuration Statements at the [edit accounting-options] Hierarchy Level
- Example: Configuring a Filter Profile
- Example: Configuring Interface-Specific Firewall Counters and Filter Profiles