title | weight |
---|---|
Statistics of AxoSyslog |
3700 |
{{% alert title="Note" color="info" %}} This chapter describes the legacy statistics of {{% param "product.abbrev" %}}. For the Prometheus-like metrics framework, see {{% xref "/metrics/_index.md" %}}. {{% /alert %}}
The {{% param "product.abbrev" %}} application collects and measures various statistics about the messages it receives and delivers. These statistics are collected into different counters, depending on the configuration of {{% param "product.abbrev" %}}. The [stats-level()
global option]({{< relref "/chapter-global-options/reference-options/_index.md" >}}) determines exactly which statistics {{% param "product.abbrev" %}} collects. You can access these statistics and metrics using the following methods.
Using the [syslog-ng-ctl
]({{< relref "/chapter-quickstart/managing-and-checking-linux/_index.md#stats" >}}) query command. For further information about using syslog-ng-ctl
commands, see The syslog-ng
manual pages.
-
Using the [
internal()
source]({{< relref "/chapter-log-statistics/log-statistics-internal-source/_index.md" >}}). -
Using the [
syslog-ng-ctl stats
]({{< relref "/chapter-quickstart/managing-and-checking-linux/_index.md#stats" >}}) command.For further information about using
syslog-ng-ctl
commands, see Thesyslog-ng
manual pages. -
Use the
socat
application:echo STATS | socat -vv UNIX-CONNECT:/opt/syslog-ng/var/run/syslog-ng.ctl -
-
If you have an OpenBSD-style
netcat
application installed, use theecho STATS | nc -U /opt/syslog-ng/var/run/syslog-ng.ctl
command. Note that thenetcat
included in most Linux distributions is a GNU-style version that is not suitable to query the statistics ofsyslog-ng
.