Question
You may expect the timestamps in your logfile to use UTC, but they are showing a different timezone. Can you tell if the timestamp is using the same time as the server?
Description
Yes. You read a log file on your server that contains timestamps, but the timestamps are way off. It is likely that your server is using a different time zone, and the log file is reflecting it.
You can verify if the logfile timestamp matches the server's time by comparing the output of these two commands.
Current server time:
# date
Sun Aug 30 10:47:22 CDT 2020
Show the end of the logfile as it is written. (use Crtl-C to break)
# tail -fn0 /var/log/exim_mainlog
2020-08-30 10:47:17 SMTP connection from [127.0.0.1]:56348 (TCP/IP connection count = 1)
2020-08-30 10:47:17 SMTP connection from (localhost) [127.0.0.1]:56348 closed by QUIT
^C
In this instance, you can see that the timestamp and server time match, indicating that the time display is in CDT.
Comments
0 comments
Article is closed for comments.