How can I change date format in access.log

donm

New Member
Oct 14, 2025
1
0
1
We are in the US and the date format in the access log is date / month / year, and I would like it to be month / day / year.

Example - this record was generated 2nd on march 2026

::ffff:10.3.3.17 - - [02/03/2026:13:56:19 +0000] "GET /api2/json/nodes/server01/status HTTP/1.1" 401 -
 
Last edited:
I believe there is no builtin option to change it since it is hardcoded. A quick workaround would be to reformat the output with sed:

Bash:
tail -f /var/log/pveproxy/access.log | sed -E 's|\[([0-9]{2})/([0-9]{2})/([0-9]{4})|\[\2/\1/\3|g'

But this only changes what you see in the terminal. You could also use a wrapper script if you need a more "permanent" solution.