/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/source/reference/parameters/mmcount-value.rst
50 строк
1 KB
Ulrike Gerhards
refactor rsyslog parameter documentation mmcount
19 сен 2025, 16:22
Не верифицирован
19 сен 2025, 16:22
917af8c
Код
Авторство
О чём код?
.. _param-mmcount-value: .. _mmcount.parameter.input.value: value ===== .. index:: single: mmcount; value single: value .. summary-start Counts only messages where the selected key equals the specified value. .. summary-end This parameter applies to :doc:`../../configuration/modules/mmcount`. :Name: value :Scope: input :Type: word :Default: none (count every observed key value) :Required?: no :Introduced: 7.5.0 Description ----------- Limits counting to a specific property value when combined with :ref:`param-mmcount-key`. After :ref:`param-mmcount-appname` matches and the requested key is present, mmcount compares the property's string representation with ``value``. If they are equal, a dedicated counter is incremented and stored in the message's ``mmcount`` property. Messages that do not match are left unchanged. When ``value`` is not provided, mmcount maintains separate counters for each property value instead. Specifying ``value`` without :ref:`param-mmcount-key` has no practical effect; in that case the module still counts messages per severity. Input usage ----------- .. _param-mmcount-value-usage: .. _mmcount.parameter.input.value-usage: .. code-block:: rsyslog action(type="mmcount" appName="glusterfsd" key="!gf_code" value="9999") See also -------- See also :doc:`../../configuration/modules/mmcount`.