| << Previous | Contents Index | Next >> |
The counter counter type key value ... statement adds an additional counter. The counter parameter is the new counter name, which can be used in output formats in place of packets or bytes. The type parameter can be packets or bytes, indicating whether the counter should accumulate packet or byte counts.
The key and value parameters select the charge records that will be accumulated by this counter. The selection rules are as for the include statement.
An alternate form is counter counter not other-counter ... This creates a counter that accumulates all data that does not match any other-counter. For example, to create counters for web and non-web traffic, one might use:
counter web bytes protocol web-in web-out counter nonweb not web
Multiple sort fields may be included.
| << Previous | Contents Index | Next >> |