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

    MailReport Filter Syntax Continued

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 1.5k 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.
    • S
      SuperTechie
      last edited by SuperTechie

      Re: Mailreport filter syntax

      If it helps anyone else, similar to what was posted years ago I was trying to find only certain IP addresses in a log using a filter like this: ,10.75.
      While that would find all of the lines with IP 10.75.x.x, it would also find all of the lines that had a ,10 and a 75 somewhere else in the line. Essentially it seems the period is working more like an "or".
      With some help from a programmer, I found this filter works:

      ,10\.75\.
      

      With this filter, it only finds lines that actually have the IP 10.75.x.x

      bingo600B 1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600 @SuperTechie
        last edited by

        @supertechie
        Have a look at regexp

        It will explain why the "dot" has to be "escaped" (by the )

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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