OS Manuals

/usr/bin/log-counter

A log couter for journald to count the number of logs in a time window

From log-counter-1.37 1.37.0-r2 (os), captured 2026-11-05 by running log-counter --help (exit 0). permalink

Also provided by 11 other package versions
Usage of /usr/bin/log-counter:
      --count int                The number of times the pattern must be found to trigger the condition (default 1)
      --delay string             The time duration log watcher delays after node boot time. This is useful when log watcher needs to wait for some time until the node is stable.
      --journald-source string   The source configuration of journald, e.g., kernel, kubelet, dockerd, etc
      --log-path string          The log path that log watcher looks up
      --lookback string          The time log watcher looks up
      --pattern string           The regular expression to match the problem in log. The pattern must match to the end of the line.
      --revert-pattern string    Similar to --pattern but conversely it decreases count value for every match. This is useful to discount a log when another log occurs.
  -v, --v Level                  number for the log level verbosity
Options (8)
OptionDescriptionSource
--count intThe number of times the pattern must be found to trigger the condition (default 1)help
--delay stringThe time duration log watcher delays after node boot time.help
--journald-source stringThe source configuration of journald, e.g., kernel, kubelet, dockerd, etchelp
--log-path stringThe log path that log watcher looks uphelp
--lookback stringThe time log watcher looks uphelp
--pattern stringThe regular expression to match the problem in log.help
--revert-pattern stringSimilar to --pattern but conversely it decreases count value for every match.help
-v, --v Levelnumber for the log level verbosityhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.