Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mailreport filter syntax

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 3 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jsbsmd
      last edited by

      Hello,

      Hopefully this is an easy question.

      Trying to send system logs to myself, but don't want any snort or barnyard lines included.

      !snort|!barnyard does not seems to work. Is there any docs for the syntax? Does is use standard reg expressions?

      1 Reply Last reply Reply Quote 0
      • D
        djguana
        last edited by

        Does anyone know where we can find some doc/examples on how to use the filter syntax of mailreport ?

        I would like to filter just the event containing the at tleast of the following : snort[ *]: [

        • = any char(s)

        e.g. :
        This one should match :
        snort[93606]: [3:19187:7] PROTOCOL-DNS TMG Firewall Client long host entry exploit attempt [Classification: Attempted User Privilege Gain] [Priority: 1] {UDP} 199.19.53.1:53 -> 192.168.22.3:31544

        This one should not match:
        php-fpm[37106]: /snort/snort_interfaces.php: [Snort] Snort START for BRIDGE(bridge0)…

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          It's the same syntax that would be used by grep at the command line, so be sure to escape or otherwise use things exactly as if it was used there as well.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • D
            djguana
            last edited by

            I am not good with grep command… i will try to dig this further with my friend google

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              This site is useful for testing regex patterns: https://www.debuggex.com/

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.