Werk #15171: Datadog special agent: Fix time shifts when querying logs

Component Checks & agents
Title Datadog special agent: Fix time shifts when querying logs
Date Jan 11, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p20 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When querying logs from the Datadog API, there was a shift in the time window of the query. The shift corresponded to the UTC offset of the local time zone of the monitoring server. This was caused by misinterpreting local times as UTC times.

For example, if the local time zone of the monitoring server is CET, then there was a shift of one hour into the future, causing the agent to query future logs. If the local time zone of the monitoring server is UTC, there was no shift.

To the list of all Werks