[MXS-98] regexfilter log Created: 2015-04-15 Updated: 2017-12-01 Resolved: 2015-05-01 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | regexfilter |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.1 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Joffrey MICHAIE (Inactive) | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hi, I don't think it is currently possible to trace the regexpfilter. Example: That would make it more easy to debug regular expressions in maxcale. Thanks, |
| Comments |
| Comment by markus makela [ 2015-05-01 ] |
|
Added optional logging of non-matching and matching queries to the trace log and a user defined file. The matched queries are printed with the original and the replacement query. |
| Comment by Timofey Turenko [ 2015-05-12 ] |
|
how can be logging switched on/off? |
| Comment by markus makela [ 2015-05-13 ] |
|
Logging to trace can be enabled with log_trace=true|false and logging to file with log_file=PATH. Here's the relevant documentation: https://github.com/mariadb-corporation/MaxScale/blob/develop/Documentation/filters/Regex-Filter.md#log_file |
| Comment by Timofey Turenko [ 2015-05-13 ] |
|
works, in the trace log I see: 2015-05-13 15:42:53 [7] No match [Ff][Oo0][rR][mM]: [fetch * from mysql.user;] |