Tom Germijns
Hi Hive Mind,
we are creating an internal dashboard to provide an overview to our colleagues/customers so they can get a complete overview of all actions/enrichments that were made on events before they resulted in an incident / beep.
For this we're looking to retrieve the event log from xMatters events to add to our central logging setup.
We've been playing with GET xm/1/events/{EventID}?embed=properties,recipients,annotations,messages,responseOptions,suppressions"
but we don't get the complete information like it's available in de the LOG tab of the reporting section of xMatters.
Does anyone have an example on how we can get the LOG information from events through the REST API ?
Thanks in advance!
0
Comments
Please sign in to leave a comment.
Hey Tom!
Sounds fun. I put something similar together for Splunk here using some Flow Designer steps. You can use it for reference if that helps.
Anyway, first question is, when do you make the call to GET events? Not all of the data is guaranteed to be there until the event is terminated, so make sure you wait until then or are only getting static data that will be there for the duration.
The other question is what data specifically are you missing? You might check out the GET audits API which has the response and annotation who, what, when details.
Finally, the "messages" item will be really big as it includes the actual HTML message generated and is difficult to parse. It might cut down on your processing time to not include that one.
I hope that helps?
Happy Monday!