pt-galera-log-explainer: add custom regexes parameter

That way anybody can handle non-galera specific logs in a single view

tests/expected/operator_auto_ambiguous_ips_list_all_no_color has been
updated, it was out-of-sync due to 2 previous pull requests that were
made in parallel
This commit is contained in:
Yoann La Cancellera
2024-02-19 20:08:29 +01:00
parent f684a11335
commit bebd652600
12 changed files with 173 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ Available flags
Detection is done using a prefix regex.
``--exclude-regexes``
Remove regexes from analysis. Use 'pt-galera-log-explainer regex-list | jq .' to have the list
Remove regexes from analysis. Use ``pt-galera-log-explainer regex-list | jq .`` to have the list
``--grep-cmd``
grep v3 binary command path. For Darwin systems, it could need to be set to ``ggrep``
@@ -159,6 +159,11 @@ Available flags
``--version``
Show version and exit.
``--custom-regexes``
Add custom regexes, printed in magenta. Format: (golang regex string)=[optional static message to display].
If the static message is left empty, the captured string will be printed instead. Custom regexes are separated using semi-colon.
Example: ``--custom-regexes="Page cleaner took [0-9]*ms to flush [0-9]* pages=;doesn't recommend.*pxc_strict_mode=unsafe query used"``
Example outputs
===============