Skip to content

Commit

Permalink
configuration_manual/event_filter: Add section regarding size compari…
Browse files Browse the repository at this point in the history
…sons using units
  • Loading branch information
fleischie authored and cmouse committed Nov 21, 2022
1 parent eecc9ab commit c1c0af2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/configuration_manual/event_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ A more complicated example::
event=abc OR (event=def AND (category=imap OR category=lmtp) AND \
NOT category=debug AND NOT (bytes_in<1024 OR bytes_out<1024))

.. versionadded:: v2.4.0;v3.0.0 Sizes can be expressed using the unit values
``B`` - which represents single byte values - as well as ``K``, ``M``, ``G``
and ``T`` which are all powers of 1024. If no unit is specified ``B`` is
used by default.

For example::

(category=debug AND NOT (bytes_in<1K OR bytes_out<1K)) OR \
(event=abc AND (message_size>1G and message_size<1T))

.. _event_filter_metric:

Metric filter syntax
Expand Down

0 comments on commit c1c0af2

Please sign in to comment.