aboutsummaryrefslogtreecommitdiffstats
path: root/global-config
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-09 14:32:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-09 14:42:43 +0200
commitde61c14c6087cc181b057843649147e76b2304eb (patch)
tree50ec29f7e96a457a74985c9fc61b460f8e036496 /global-config
parentd5f43aa26daa77d4211a3a71c2d8c6f765489891 (diff)
log-forward: implement reverse logic to include messages...change-55
... 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*.
Diffstat (limited to 'global-config')
-rw-r--r--global-config12
1 files changed, 9 insertions, 3 deletions
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.