Log Latency Dashboard

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.

Solved Solved
0 4 197
3 ACCEPTED SOLUTIONS

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)

View solution in original post

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

View solution in original post

4 REPLIES 4

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)

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

Very helpful, so thanks to all who posted here.