SRX

last person joined: 20 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Excldue multiple strings from syslog messages

    Posted 03-15-2016 13:35

    I'd like to exclude multiple strings from syslog messages. I know how to do this for a single string:

     

     

    user@SRX_FW# show system syslog host 10.1.0.40
    any notice;
    match "!(.*WEBFILTER_URL_BLOCKED.*)";

    My question is how do I format the syntax to ignore multiple strings? The syntaxes that logically made sense to me returned this error: repetition-operator operand invalid at '!(.*WEBFILTER_URL_BLOCKED.*|*RT_SCREEN_IP: IP spoofing*)'

     

    Thanks,

     

    Matthew

     


    #syslog
    #SRX
    #log
    #logging


  • 2.  RE: Excldue multiple strings from syslog messages
    Best Answer

     
    Posted 03-15-2016 14:23

    At a guess try:

    match "!(.*foo.*)|!(.*bar.*)";

    Sorry if it's wrong, it's just a guess.

     

    Regards,

    Andy