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 committed Nov 2, 2022
1 parent db8230c commit d93ccc7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/configuration_manual/event_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ 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:: v3.0.0

Sizes can now also 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.

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 d93ccc7

Please sign in to comment.