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

    How to make the year visible in the log format pfBlocker (ip_block.log)

    Scheduled Pinned Locked Moved pfBlockerNG
    3 Posts 2 Posters 405 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.
    • ocernaO
      ocerna
      last edited by ocerna

      Hello,

      pfSense version 2.5.0-RELEASE (amd64).
      pfBlockerNG-devel 3.0.0_10.

      I would like you could help me as an inconvenience that I am having with respect to the logs format of the pfBlocker, in which it is not showing me the year, at the moment it is only showing this "MMM DD HH: MM: SS", I would like to see something similar to this "YYYY MMM DD HH: MM: SS", all similar to the original format but that the year is visible.

      I need it like this for my dashboard of reports that are being implemented in which the data regarding the year is essential.

      Thanks.

      d133775b-2c7f-472a-8b9e-c39a22abb6b4-image.png

      RonpfSR 1 Reply Last reply Reply Quote 0
      • RonpfSR
        RonpfS @ocerna
        last edited by RonpfS

        @ocerna BTW The pfsense log don't have the date year :

        Feb 23 17:19:24 pfSense filterlog: 9,,,1000000103,xl0,match,block,in,4,0x0
        

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        ocernaO 1 Reply Last reply Reply Quote 0
        • ocernaO
          ocerna @RonpfS
          last edited by

          @ronpfs a pleasure.

          In your example there is a date, the missing data is the year.

          Feb 23 17:19:24 pfSense filterlog: 9,,,1000000103,xl0,match,block,in,4,0x0

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