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

    DateTime format in Log Files - configurable to ISO 8601 standard?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 534 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.
    • D
      Daksol
      last edited by

      Is is possible to configure the format of the date-time stamps which get written to logfiles?

      Logfiles in pfSense by default have date-time stamps which look like this
      Dec 20 22:13:18

      These are not optimal - they don't sort properly.
      For instance January dates have order 1, 13 then 9.

      ISO 8601 defines a better behaved time stamp, like
      2019-12-20T22:13:18Z for a date-time for UTC

      At the very least it would help to force the date values to be always two digits, that would be a bit better.

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

        https://redmine.pfsense.org/issues/9808

        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!

        D 1 Reply Last reply Reply Quote 2
        • D
          Daksol @jimp
          last edited by

          @jimp
          Thanks. The good work on the date formats in the logfile is now live and in production on v2.5.
          Much appreciated.

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