Log entry sorting alphabetical by month?
-
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?
-
pfSense version ?
-
2.7.2 CE
-
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.
-
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.
-
@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.