From de61c14c6087cc181b057843649147e76b2304eb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 9 Jun 2021 14:32:52 +0200 Subject: log-forward: implement reverse logic to include messages... ... even if a filter matches to exclude them. Let's have an example: :global LogForwardFilter "(debug|info)"; :global LogForwardInclude "account"; This will forward everything about topic *account* (login, logout, failed login, ...) - even with topic *info*. --- global-config | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'global-config') diff --git a/global-config b/global-config index b22a05a..05197cf 100644 --- a/global-config +++ b/global-config @@ -8,7 +8,7 @@ # Make sure all configuration properties are up to date and this # value is in sync with value in script 'global-functions'! -:global GlobalConfigVersion 54; +:global GlobalConfigVersion 55; # This is used for DNS and backup file. :global Domain "example.com"; @@ -69,14 +69,20 @@ :global BackupUploadUser "mikrotik"; :global BackupUploadPass "v3ry-s3cr3t"; -# This defines what log messages to filter by topic or message +# This defines what log messages to filter or include by topic or message # text. Regular expressions are supported. Do *NOT* set an empty string, -# that will filter everything! +# that will filter or include everything! # These are filters, so excluding messages from forwarding. :global LogForwardFilter "(debug|info)"; :global LogForwardFilterMessage []; #:global LogForwardFilterMessage "message text"; #:global LogForwardFilterMessage "(message text|another text|...)"; +# ... and another setting with reverse logic. This includes messages even +# if filtered above. +:global LogForwardInclude []; +:global LogForwardIncludeMessage []; +#:global LogForwardInclude "account"; +#:global LogForwardIncludeMessage "message text"; # Specify an address to enable auto update to version assumed safe. # The configured channel (bugfix, current, release-candidate) is appended. -- cgit v1.2.3-54-g00ecf