mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
log-forward: use $EscapeForRegEx
This commit is contained in:
parent
7c4ab95394
commit
5610926d0a
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
:global LogForwardRateLimit;
|
||||
:global NotificationsWithSymbols;
|
||||
|
||||
:global CharacterReplace;
|
||||
:global EscapeForRegEx;
|
||||
:global IfThenElse;
|
||||
:global LogPrintExit2;
|
||||
:global QuotedPrintable;
|
||||
|
@ -45,9 +45,9 @@ $WaitFullyConnected;
|
|||
:local MessageVal;
|
||||
:local MessageDups [ :toarray "" ];
|
||||
|
||||
:local LogForwardFilterLogForwarding [ $CharacterReplace ("^Error sending e-mail <" . \
|
||||
[ $QuotedPrintable ("\\[" . $Identity . "\\] " . [ $SymbolForNotification "warning-sign" ] . \
|
||||
"Log Forwarding") ] . ">:") ("\?") ("\\\?") ];
|
||||
:local LogForwardFilterLogForwarding ("^" . [ $EscapeForRegEx ("Error sending e-mail <" . \
|
||||
[ $QuotedPrintable ("[" . $Identity . "] " . [ $SymbolForNotification "warning-sign" ] . \
|
||||
"Log Forwarding") ] . ">:") ]);
|
||||
:foreach Message in=[ / log find where !(topics~$LogForwardFilter) !(message="") \
|
||||
!(message~$LogForwardFilterLogForwarding) !(message~$LogForwardFilterMessage) ] do={
|
||||
:set MessageVal [ / log get $Message ];
|
||||
|
|
Loading…
Reference in a new issue