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

    Log entry sorting alphabetical by month?

    Scheduled Pinned Locked Moved webGUI
    6 Posts 3 Posters 530 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
      Se7enLC
      last edited by

      Just happened to notice this, I assume it's a bug? Or maybe I have a broken configuration somewhere.

      Under Status / System Logs, the default sort order for log entries has the oldest entry at the top and the newest entry at the bottom.

      You can click on the "Time" heading to change the sort order. When you do that however, your options are ascending or descending alphabetically by month -- rather than chronologically. So April, then August, then February, etc.

      Maybe I can change the date stamp format for the logs to have something that natively sorts better? YYYYMMDD, etc?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Se7enLC
        last edited by

        @Se7enLC

        pfSense version ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 2 Replies Last reply Reply Quote 0
        • S
          Se7enLC @Gertjan
          last edited by

          2.7.2 CE

          1 Reply Last reply Reply Quote 0
          • S
            Se7enLC @Gertjan
            last edited by

            I should have spent more time looking at the settings before posting. There's an option to change the default sort order, which I suspect is handled differently from clicking the Time heading.

            There's also an option to change from the default timestamp format (BSD RFC 3164) to syslog format (RFC 5424). RFC 5424 timestamp starts with YYYY-MM-DD HH:MM:SS, so alpha sort and chronological sort are the same.

            Still probably a bug but this workaround works for me.

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

              Clicking the column headers does indeed sort alphabetically because it uses a not very sophisticated javascript routine inside the browser.

              To display the log entries with the most recent at the top, there is a setting under Status > System Logs > Settings in the pfSense menu for that. It is the second choice on that tab. It is labeled Forward/Reverse Display.

              S 1 Reply Last reply Reply Quote 0
              • S
                Se7enLC @bmeeks
                last edited by

                @bmeeks Thanks, that makes perfect sense. Sorting timestamps in that month-first format would be a mess!

                My responses are being held for administrator approval since I just signed up to post this thread. Hopefully they still make sense being out of order. I had already found the setting you pointed me to, and also a timestamp format setting to make alpha sorting work properly.

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