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
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0p20
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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