[an error occurred while processing this directive][an error occurred while processing this directive]

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:

[edit accounting-options]filter-profile profile-name {counters {counter-name;}file filename;interval minutes;}

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 Network Interfaces Configuration Guide.

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:

[edit accounting-options filter-profile profile-name]counters {}

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:

[edit accounting-options filter-profile profile-name]file filename;

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 Software 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 Software 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:

[edit accounting-options filter-profile profile-name]interval;

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.


Published: 2010-04-27

[an error occurred while processing this directive]