Description

This article describes about whether we can configure match and match! under a same syslog file.


Symptoms

Configure a match! and a match statement under the file test:


root# set system syslog file test match "!(.*PCF.*)";                

 root# set system syslog file test match LIBRESOLVER_DNS_SERVER_REPLY_ERROR_CODE  



root# show | compare 

[edit system]

+  syslog {

+    file test {

+      match LIBRESOLVER_DNS_SERVER_REPLY_ERROR_CODE; >>

+    }

+  }


Device will replace the match! statement with match statement configured.



Solution

Under a specific file, we will be able to configure either "match" condition or "match!" condition.


This is an expected behaviour.



Modification History

2024-10-21 : Article Created