back

Input Module to Generate Periodic Statistics of Internal Counters

Module Name:    impstats

Available since: 5.7.0+, 6.1.1+

Author: Rainer Gerhards <rgerhards@adiscon.com>

Description:

This module provides periodic output of rsyslog internal counters. Note that the whole statistics system is currently under development. So availability and format of counters may change and is not yet stable (so be prepared to change your trending scripts when you upgrade to a newer rsyslog version).

The set of available counters will be output as a set of syslog messages. This output is periodic, with the interval being configurable (default is 5 minutes). Be sure that your configuration records the counter messages (default is syslog.=info). Besides logging to the regular syslog stream, the module can also be configured to write statistics data into a (local) file.

Note that loading this module has impact on rsyslog performance. Depending on settings, this impact may be noticeable (for high-load environments).

The rsyslog website has an updated overview of available rsyslog statistic counters.

Note that there is a rsyslog statistics online analyzer available. It can be given a impstats-generated file and will return problems it detects. Note that the analyzer cannot replace a human in getting things right, but it is expected to be a good aid in starting to understand and gain information from the pstats logs. <7p>

Module Confguration Parameters:

This module supports module parameters, only.

Legacx Configuration Directives:

A limited set of parameters can also be set via the legacy configuration syntax. Note that this is intended as an upward compatibilit layer, so newer features are intentionally not available via legacy directives.

See Also

Caveats/Known Bugs:

Samples:

This activates the module and records messages to /var/log/rsyslog-stats in 10 minute intervals:

Legacy Sample:

This activates the module and records messages to /var/log/rsyslog-stats in 10 minute intervals:

In the next sample, the default interval of 5 minutes is used. However, this time stats data is NOT emitted to the syslog stream but to a local file instead.

And finally, we log to both the regular syslog log stream as well as a file. Within the log stream, we forward the data records to another server:

[rsyslog.conf overview] [manual index] [rsyslog site]

This documentation is part of the rsyslog project.
Copyright © 2013 by Rainer Gerhards and Adiscon. Released under the GNU GPL version 3 or higher.