KB Article #73387

Gateway filters: how to use regular expressions (wildcards)

Problem

-- By default, in order to filter all transfers that are using the applications FTP_A, FTP_B, FTP_* one can use a filter like:
application=FTP_
-- However, this default behavior does not allow filtering using expressions like:
application=FTP_*
or
application=*F*
-- How to use wildcards in filters so that the filter *F* is applied successfully?


Resolution

* The parameter responsible with the use of regular expressions is:
select_with_regexp



* To activate this parameter one should follow the steps below:



1. Stop Gateway:
gatestop



2. Activate "select_with_regexp" and verify that the value 1 was applied:
peluconf standalone set -s monitor select_with_regexp 1
peluconf standalone rebuild -f
peluconf standalone get -s monitor select_with_regexp



3. Start Gateway
gatestart



4. Check the filter expression:
application=*F*
This should return all applications containing F in their names.