Skip to content

Commit 8abe8a6

Browse files
committed
Filter intermediate: improve README
1 parent ecbabea commit 8abe8a6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/plugins/intermediate/filter/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,21 @@ Example configuration
6969
</params>
7070
</intermediate>
7171
72+
The most common use case would be filtering based on a list of allowed IP
73+
address ranges. In such case, it is recommended to use the following construct
74+
for optimal performance:
75+
76+
.. code-block:: xml
77+
78+
<intermediate>
79+
<name>Filter</name>
80+
<plugin>filter</plugin>
81+
<params>
82+
<expr>srcip in [1.0.0.0/8, 2.2.0.0/16, 3.3.3.0/24] or dstip in [4.4.4.0/24]</expr>
83+
</params>
84+
</intermediate>
85+
86+
7287
Parameters
7388
----------
7489

0 commit comments

Comments
 (0)