From 8b20348f461d6b3c6030cbc63f58e39df20021dc Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Tue, 18 Jun 2024 16:25:34 +0200 Subject: [PATCH] Document the stats(lifetime) global option --- .../chapter-global-options/reference-options/_index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/chapter-global-options/reference-options/_index.md b/content/chapter-global-options/reference-options/_index.md index f52082ba..79fdeba1 100644 --- a/content/chapter-global-options/reference-options/_index.md +++ b/content/chapter-global-options/reference-options/_index.md @@ -489,6 +489,15 @@ options { Note that level 2 and 3 increase the memory requirements and CPU load. For details on message statistics, see {{% xref "/chapter-log-statistics/_index.md" %}}. +### lifetime() {#global-option-stats-lifetime} + +| | | +| ---------------- | ------- | +| Accepted values: | number (seconds) | +| Default: | `N/A` | + +*Description:* Dynamic counters in metrics are pruned after `lifetime` expires. Note that orphaned counters are not pruned (you can prune them by running `syslog-ng-ctl stats --remove-orphans`). + ### max-dynamics() {#global-option-stats-max-dynamics} | | |