Skip to main content
Solved

Log Latency Dashboard

  • March 6, 2025
  • 4 replies
  • 53 views

Forum|alt.badge.img+3

Has anyone built any SIEM Dashboards in SecOps to monitor for latency? I'm specifically interested in finding a solution to monitoring the difference between event_timestamps and ingestion_timestamps by log type. I'd want to visualize the average difference, per log type, based on whatever timeframe I search on.

Best answer by amithpatil

If you're using native dashboards ,  You can write a query something similar to below to achieve this : 

 

match: metadata.log_type outcome: $event_count = count_distinct(metadata.id) $event_latency = avg(metadata.ingested_timestamp.seconds - metadata.event_timestamp.seconds)

4 replies

amithpatil
Staff
Forum|alt.badge.img+3
  • Staff
  • Answer
  • March 6, 2025

If you're using native dashboards ,  You can write a query something similar to below to achieve this : 

 

match: metadata.log_type outcome: $event_count = count_distinct(metadata.id) $event_latency = avg(metadata.ingested_timestamp.seconds - metadata.event_timestamp.seconds)

cmorris
Staff
Forum|alt.badge.img+10
  • Staff
  • March 6, 2025

Please try this:

metadata.log_type != "" $logType = metadata.log_type match: $logType outcome: $eventTotal = count_distinct(metadata.id) $deltaSec = math.round((sum(metadata.ingested_timestamp.seconds) - sum(metadata.event_timestamp.seconds))/$eventTotal,0) $deltaMin = math.round($deltaSec/60,2) order: $deltaMin desc

cmmartin_google
Staff
Forum|alt.badge.img+11

Forum|alt.badge.img+3
  • Author
  • New Member
  • March 13, 2025

Very helpful, so thanks to all who posted here.