mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 04:54:28 +02:00
log-forward: add filter on log message text
This commit is contained in:
parent
c3ea555233
commit
697e32a306
6 changed files with 11 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
:global Identity;
|
||||
:global LogForwardFilter;
|
||||
:global LogForwardFilterMessage;
|
||||
:global LogForwardLast;
|
||||
|
||||
:global LogPrintExit;
|
||||
|
@ -29,7 +30,7 @@ $WaitFullyConnected;
|
|||
:local Messages "";
|
||||
:local MessageVal;
|
||||
|
||||
:foreach Message in=[ / log find where !(topics~$LogForwardFilter) ] do={
|
||||
:foreach Message in=[ / log find where !(topics~$LogForwardFilter) !(message~$LogForwardFilterMessage) ] do={
|
||||
:set MessageVal [ / log get $Message ];
|
||||
|
||||
:if ($LogForwardLast = ($MessageVal->".id")) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue