• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Apr 20, 2022, 9:42 PM Apr 20, 2022, 9:39 PM

    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

    B 1 Reply Last reply Apr 21, 2022, 12:23 PM Reply Quote 0
    • B
      bingo600 @SuperTechie
      last edited by Apr 21, 2022, 12:23 PM

      @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
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received