Log timestamps not matching real times
pauldps
HOBBYOP

a year ago

I'm running an app that logs memory usage every 10 seconds. I noticed that some log timestamps were the same across multiple lines, which made me add a timestamp to the logs themselves, and there seems to be a discrepancy between the event time and the time shown in the log entry. See image.

It seems like the logs are getting flushed in batches. Is this expected?

Project ID: a0aefb5f-15c4-49c6-a7ec-020b58d0cfc5
Service ID: ae4c8ca4-00b8-415b-ac10-4baa1612691f

Solved

6 Replies

a year ago

It seems like the logs are getting flushed in batches. Is this expected?

yes it is, batches of 1 second.

there seems to be a discrepancy between the event time and the time shown in the log entry

local time vs utc probably?


pauldps
HOBBYOP

a year ago

yeah the hour is different due to timezone. But look at the seconds


a year ago

yeah thats within tolerances


pauldps
HOBBYOP

a year ago

okay, thanks. Just wanted to make sure. I am trying to determine how fast my app really boots, now I know I can't rely on log timestamps for that


a year ago

happy to help


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...