Hi all
We have karbon clusters running in our Nutanix environment, and I noticed the timezone in the Karbon cluster is not the same as that in other VMs on the Nutanix cluster.
The time zone set for the Nutanix cluster is SAST (UTC +2), and the Karbon VMs timezone is UTC (UTC +0).
The UTC+0 timezone is only on the Karbon Nodes.
It seems it doesn’t use the Nutanix Cluster’s timezone, our logs are 2 hours behind on Karbon Clusters(all 3 cluster).
Is there a way to change the timezone for Karbon?
Hey
In the meantime, the procedure to change the timezone on a Nutanix cluster is mentioned in this KB article KB 1050
So I searched for this
This will be the easiest way to sync different time sources. So I suggest you, adjust your log collection to reflect the time zone. Basically, adjust your log collector on Nutanix cluster to understand that logs coming from Karbon are in UTC and then their log display UI should adjust according to whatever timezone it is accessed from.
So basically only the display time should be shown in a specific timezone and storage/export time from a system should always be in UTC.
That way if a sysadmin in Paris and a sysadmin in Hong Kong access the same log collection system, they will always see logs according to their own local timezone, no whatever the timezone of the system that had output the logs was at that time.
I hope I made things clear. Let me know fi you have any doubts.
So I searched for this
This will be the easiest way to sync different time sources. So I suggest you, adjust your log collection to reflect the time zone. Basically, adjust your log collector on Nutanix cluster to understand that logs coming from Karbon are in UTC and then their log display UI should adjust according to whatever timezone it is accessed from.
So basically only the display time should be shown in a specific timezone and storage/export time from a system should always be in UTC.
That way if a sysadmin in Paris and a sysadmin in Hong Kong access the same log collection system, they will always see logs according to their own local timezone, no whatever the timezone of the system that had output the logs was at that time.
I hope I made things clear. Let me know fi you have any doubts.
Hi
Thanks for that information, is there an article that guides how to do the above?
Hey
Let me know if you have any doubts.
Hey
The CVMs (and all VMs besides Karbon Nodes) have the correct time zone as per below confirmation.
Only the Karbon Kubernetes nodes have the UTC timezone, so the pod logs are always 2 hours behind.
$ ncli cluster info | grep Timezone
Timezone : Africa/Johannesburg
$ allssh date
================== 10.30.2.51 =================
Thu Jul 16 10:31:28 SAST 2020
================== 10.30.2.52 =================
Thu Jul 16 10:31:29 SAST 2020
================== 10.30.2.53 =================
Thu Jul 16 10:31:30 SAST 2020
================== 10.30.2.54 =================
Thu Jul 16 10:31:31 SAST 2020
is there a way to update the timezone for Karbon Cluster Nodes?
Hey
We always recommend keeping the timezone to UTC for all systems.
Hey
We always recommend keeping the timezone to UTC for all systems.
Noted, thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.