How to enable alert if sourceCategoriesor category has no logs over 1 hour duration in the collector

Comments

2 comments

  • Official comment
    Avatar
    Eli Jang

    Sample query attached below. Feel free to customize it.

    _sourceCategory=sample/log
    | _receiptTime as receipt_time
    | now() as current_time
    | (current_time - receipt_time)/1000/60/60 as diff_hours
    | where diff_hours < 1
    | formatDate(toLong(receipt_time),"YYYY-MM-dd HH:mm:ss") as receipt_time_string
    | count by receipt_time_string, diff_hours

    Comment actions Permalink
  • Avatar
    Arunkumar Natarajan

    Thanks Eli.

    0
    Comment actions Permalink

Please sign in to leave a comment.