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

    SNORT alert timestamp in GUI does not respect DST change

    Scheduled Pinned Locked Moved IDS/IPS
    3 Posts 2 Posters 391 Views 2 Watching
    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.
    • C Offline
      cyberzeus
      last edited by cyberzeus

      PFSENSE: v2.4.1-RELEASE
      SNORT: 3.2.9.5_3

      After the DST-ending fall-back this morning, SNORT alerts shown in the GUI were still using the DST time rather than the proper fall-back time. The same alerts in the actual log were showing the correct time.

      A SNORT restart solved the issue but thought I would still mention it.

      Thoughts?

      0_1541356488199_pfsense-snort_alert-time-gui_181104_REDACT.jpeg

      0_1541356596206_pfsense-snort_alert-time-syslog_181104_REDACT.jpeg

      1 Reply Last reply Reply Quote 0
      • bmeeksB Offline
        bmeeks
        last edited by bmeeks

        What do the timestamps for your system log messages look like during the same time interval? Did those timestamps auto-adjust to the DST change?

        The Snort package uses vanilla PHP system calls to convert the timestamps to strings for display on the ALERTS tab. The underlying binary is logging in Univseral Time, but the GUI converts to local time using standard PHP function calls. My first suspicion is the PHP functions themselves did not auto-update the running instance. Or stated another way, the PHP module that was running started running on DST and never got updated to the fact DST ended and regular time began. Restarting Snort will kill and restart the PHP processes associated with the Snort GUI as you swap pages in the GUI. Upon restarting, the PHP processes realized DST had ended.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cyberzeus
          last edited by

          In syslog, they look correct but on the GUI side, there is unfortunately no way to check this due to the display having an upper limit of 2000 entries...

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