ceph.log file switched to unix timestamp

Leah

Well-Known Member
Aug 1, 2019
56
6
48
Hey, after our upgrade to Proxmox 8 with ceph 17.2.7 we observed a strange change in the /var/log/ceph/ceph.log. In this file the format for log timestaps changed to unix time stamps and we have no idea why and couldn't find anything in the ceph docs neither the release notes. All other ceph log files still use the human readable format. Is there an option to change it back to the human readable format?


Code:
2023-09-26T14:21:06.501490+0200 mgr.node26 (mgr.658014101) 4221966 : cluster [DBG] pgmap v4225583: 257 pgs: 257 active+clean; 18 TiB data, 51 TiB used, 51 TiB / 101 TiB avail
; 22 MiB/s rd, 28 MiB/s wr, 3.98k op/s
2023-09-26T14:21:08.502743+0200 mgr.node26 (mgr.658014101) 4221967 : cluster [DBG] pgmap v4225584: 257 pgs: 257 active+clean; 18 TiB data, 51 TiB used, 51 TiB / 101 TiB avail
; 24 MiB/s rd, 35 MiB/s wr, 4.33k op/s
2023-09-26T14:21:10.503799+0200 mgr.node26 (mgr.658014101) 4221968 : cluster [DBG] pgmap v4225585: 257 pgs: 257 active+clean; 18 TiB data, 51 TiB used, 51 TiB / 101 TiB avail
; 23 MiB/s rd, 33 MiB/s wr, 4.08k op/s
1695730968.572561 mgr.node26 (mgr.658014101) 4222017 : cluster [DBG] pgmap v4225636: 257 pgs: 63 active+undersized+degraded, 194 active+clean; 18 TiB data, 51 TiB used, 51 Ti
B / 101 TiB avail; 25 MiB/s rd, 63 MiB/s wr, 3.85k op/s; 1160339/14138004 objects degraded (8.207%)
1695730970.5739317 mgr.node26 (mgr.658014101) 4222018 : cluster [DBG] pgmap v4225637: 257 pgs: 63 active+undersized+degraded, 194 active+clean; 18 TiB data, 51 TiB used, 51 T
iB / 101 TiB avail; 21 MiB/s rd, 60 MiB/s wr, 3.31k op/s; 1160339/14138004 objects degraded (8.207%)
1695730972.5751753 mgr.node26 (mgr.658014101) 4222019 : cluster [DBG] pgmap v4225638: 257 pgs: 63 active+undersized+degraded, 194 active+clean; 18 TiB data, 51 TiB used, 51 T
iB / 101 TiB avail; 20 MiB/s rd, 55 MiB/s wr, 3.07k op/s; 1160339/14138004 objects degraded (8.207%)
 
I can verify this here, but couldn't find the commit yet that introduced that change.
 
  • Like
Reactions: Leah
Not much yet, other than that it only seems to be Quincy (Ceph 17) on Bookworm that's affected, while on Bullseye it retains the old format.
There are no source code changes between the Bullseye build and the Bookworm build. It may be a different configuration of something during build, or some external dependency that changes this.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!