From 45ecc63e8c093bbfb05ae3c0a7eb31458839b87e Mon Sep 17 00:00:00 2001 From: JoukoVirtanen Date: Wed, 24 Jan 2024 20:36:30 -0800 Subject: [PATCH 1/2] X-Smart-Branch-Parent: master From 0c69cf310dfe098ac0ac21172cffbb24deeaf89f Mon Sep 17 00:00:00 2001 From: JoukoVirtanen Date: Wed, 24 Jan 2024 20:39:28 -0800 Subject: [PATCH 2/2] Increased throtteling time to half an hour --- collector/lib/SysdigService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/lib/SysdigService.cpp b/collector/lib/SysdigService.cpp index ca6a903475..aff85b2d7f 100644 --- a/collector/lib/SysdigService.cpp +++ b/collector/lib/SysdigService.cpp @@ -216,12 +216,12 @@ void LogUnreasonableEventTime(int64_t time_micros, sinsp_evt* evt) { time_diff = time_micros - evt_ts; if (time_diff > max_past_time) { - CLOG_THROTTLED(WARNING, std::chrono::seconds(10)) << "Event of type " << evt->get_type() << " is unreasonably old. It's timestamp is " << google::protobuf::util::TimeUtil::MicrosecondsToTimestamp(evt_ts); + CLOG_THROTTLED(WARNING, std::chrono::seconds(1800)) << "Event of type " << evt->get_type() << " is unreasonably old. It's timestamp is " << google::protobuf::util::TimeUtil::MicrosecondsToTimestamp(evt_ts); COUNTER_INC(CollectorStats::event_timestamp_distant_past); } if (time_diff < -max_future_time) { - CLOG_THROTTLED(WARNING, std::chrono::seconds(10)) << "Event of type " << evt->get_type() << " is in the future. It's timestamp is " << google::protobuf::util::TimeUtil::MicrosecondsToTimestamp(evt_ts); + CLOG_THROTTLED(WARNING, std::chrono::seconds(1800)) << "Event of type " << evt->get_type() << " is in the future. It's timestamp is " << google::protobuf::util::TimeUtil::MicrosecondsToTimestamp(evt_ts); COUNTER_INC(CollectorStats::event_timestamp_future); } }