how would you filter two events that happen close together in time

Comments

3 comments

  • Avatar
    Ankit Goel
    Not sure if I understood correctly but you can timeslice your incoming events by 2 mins and with in each time bucket, if count distinct of events > 2 then it will give what you looking for
    0
    Comment actions Permalink
  • Avatar
    Alhad Palkar
    how would I construct a query that searches for either event1 or event2? I have just started using SumoLogic and I can't find a way of doing that. if I can do this, I would be able to use the "timeslice" although this is still a hack 'cause it could happen that event1 and event2 get split into adjoining buckets
    0
    Comment actions Permalink
  • Avatar
    Alhad Palkar
    something like this sort of works although i still have to manually go through the results to infer causality here is my query: ((_sourceCategory=log/*) and ("server closing..." or "client returned error :")) |parse regex "client returned error : -(?\d*)" nodrop | where (isEmpty(error_code) or error_code="1")
    0
    Comment actions Permalink

Please sign in to leave a comment.