Query filter - MySQL

A Query filter is invoked for requests of type Command (QUERY and STMT_PREPARE). It is convenient if you're only interested in SQL queries.

Parameters

None of the parameters are required.

The parameters that can take multiple values can be separated by commas or by newlines.


Query patterns

A list of strings or regular expressions that should match the SQL request.


Client IPs

A list of IP addresses (IP4 and/or IP6) and/or regular expressions for IP addresses.

Example:

12.34.56.78
1234:5678:90ab::01
regex:98\.76\..*
regex:9876:5432:.*


Users

A list of user names and/or regular expressions for user names. If specified, only queries executed by these users will cause execution of the filter.