Sensu Events API, Search queries

118 Views Asked by At

I've just started using Sensu, I know we have an Events API, where we can retrieve events. Since I'm used to Splunk, I used to run search queries to retrieve events. I'm trying to do the same here, Say I got the event below, how will I use Sensu Events API retrieve all the events that has "SN": "1234"? Can I ? if so how?

Thanks, Snabel

{
"id": "2829f9a5-ae0c-4698-b14e-c742cf575802",
"client": {
  "name": "test",
  "address": "x.x.x.x",
  "subscriptions": [
    "test"
  ],
  "version": "x",
  "timestamp": 1454840570
},
"check": {
  "name": "test me",
  "output": "...",
  "status": 1,
  "description": "---LOCAL---",
  "severity": "Informational",
  **"SN": "1234",**
  "executed": 1454840575,
  "issued": 1454840575,
  "history": [
    "1"
  ],
  "total_state_change": 0
},
"occurrences": 1,
"action": "create",
"timestamp": 1454840575
}
0

There are 0 best solutions below