Statistics of AxoSyslog
The AxoSyslog application collects various statistics and measures different metrics about the messages it receives and delivers. These metrics are collected into different counters, depending on the configuration of AxoSyslog. The stats-level() global option determines exactly which statistics AxoSyslog collects. You can access these statistics and metrics using the following methods.
Recommended: Structured, selective methods:
- Using the
monitoring()source. - Using the
syslog-ng-ctlquery command. For further information about usingsyslog-ng-ctlcommands, see The syslog-ng control tool manual page.
Legacy: Unstructured, bulk methods
-
Using the
internal()source. -
Using the
syslog-ng-ctl statscommand.For further information about using
syslog-ng-ctlcommands, see The syslog-ng control tool manual page. -
Use the
socatapplication:echo STATS | socat -vv UNIX-CONNECT:/opt/syslog-ng/var/run/syslog-ng.ctl - -
If you have an OpenBSD-style
netcatapplication installed, use theecho STATS | nc -U /opt/syslog-ng/var/run/syslog-ng.ctlcommand. Note that thenetcatincluded in most Linux distributions is a GNU-style version that is not suitable to query the statistics ofsyslog-ng.