This article describes about whether we can configure match and match! under a same syslog file.
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.
Under a specific file, we will be able to configure either "match" condition or "match!" condition.
This is an expected behaviour.