Configuring Statistics Profiles

The local policy decision function (L-PDF) enables you to configure properties for statistics output. To do this, you create a statistics profile, which configures the files to which statistics records are exported and the format that is exported. There are two configurations you can use to specify the profile, as described in the following subsections:

Note: You must use the same configuration stanza for specifying the profile and the file selection. If configurations are committed in both hierarchies, the one at the [edit system services local-policy-decision-function] hierarchy level takes precedence.

Note: During the time that the application identification (APPID) feature has not yet made a final determination of the application associated with a given flow, the flow does not contribute to any per-subscriber or per-application statistics collection. For more information, see Best-Effort Application Identification of DPI-Serviced Flows.

Configuring an L-PDF Statistics Profile

You can specify an L-PDF statistics profile by including the following configuration at the [edit accounting-options] hierarchy level:

[edit accounting-options]policy-decision-statistics-profile profile-name {application-aware-access-list-fields [ field-name ];file filename;files number;size bytes;}

Note: This configuration method is not the preferred method for configuring Dynamic Application Awareness statistics. It is only maintained for backwards compatibility and may be deprecated in a future software release. The new, preferred configuration is found at the [edit system services local-policy-decision-function] hierarchy level, as described in Configuring an AACL Statistics Profile.We encourage you to migrate to the new configuration method.

You specify a profile name to identify the profile and other properties as needed by including the policy-decision-statistics-profile statement. The aacl-fields statement specifies which statistics to collect in an accounting-data log file. This log file is located on the /var/log directory on the router. You specify the log file by including the file filename statement. The filename is prefixed by the aacl_statistics_ prefix; for example, if you specify the filename lpdfd, the log file will be /var/log/aacl_statistics_lpdfd.

The application-aware-access-list-fields statement supports the following options:

For more information on configuring profiles, see the Junos Network Management Configuration Guide.

Configuring an AACL Statistics Profile

You can specify an AACL statistics profile by including the following configuration at the [edit system services] hierarchy level:

local-policy-decision-function {statistics {file filename {archive-sites [ url ];files number;size bytes;transfer-interval minutes;}aacl-statistics-profile profile-name {aacl-fields [ field-name ];file filename;report-interval minutes;record-mode (interim-active-only | interim-full);}record-type (delta | interim);}}

To specify the file properties, include the file statement at the [edit system services local-policy-decision-function statistics hierarchy level with a unique filename:

You specify a profile name to identify the profile and other properties as needed by including the aacl-statistics-profile statement. The aacl-fields statement specifies which statistics to collect in an accounting-data log file. This log file is located on the /var/stats/aacl directory on the router. You specify the log file by including the file filename statement.

The aacl-fields statement supports the following options:

The record-type statement specifies whether a record is delta or interim; delta is the default setting. The report-interval statement specifies the reporting interval in minutes; the default setting is 15 minutes and the range is 5 through 1440 minutes. The record-mode statement specifies how the statistics are reported for each reporting interval; the default setting is interim-full and reports all available statistics. To report only statistics that have changed for the reporting interval, use the interim-active-only setting.

For more information on configuring profiles, see the Junos Network Management Configuration Guide.