Logging
Author: halil
Publication Date: 2/21/2022 13:46
Our server logs the messages to fs-server.log in UTC. How can I change this to CET.
-
Author: hoebbel - 2/21/2022 13:51
Dear halil,
FirstSpirit uses the local server time for all log entries.
Best regards
Holger0 -
Author: halil - 5/23/2022 13:45
The problem occurs whenever the OS (RedHat Linux) reboots. FS-Server is also started after reboot automaticaly via systemd and after that, it only logs in UTC, even though the "date" command on linux outputs the local time. Only after we start the FS-Server manually once again, it starts to log with local-server time. What could be the conflict here?
0 -
Author: hoebbel - 6/2/2022 13:34
Dear Halil,
I suspect that it is because the time zone has not yet been changed to CET when FirstSpirit is started via systemd. This could be a timing problem.
If I am informed correctly, the time zone in RHEL is set via timedatectl at startup. So the systemd process starts both FirstSpirit and sets the correct time zone.
If you are lucky, you can fix this by changing the order in which the processes start. But I'm afraid that won't work, because probably the timezone used is the one that was valid when the systemd process started - and that is probably UTC.
This is not a FirstSpirit problem, but here a Linux admin is needed - unfortunately I have to pass here.best regards
Holger0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare