Get Logs of incidents for particular service

Hi,

We are using List log entries Rest API to get log entries . This gives all the logs of all the incidents. But is that possible that we can get logs of incidents of particular service? For example logs of those incidents which are part of service lets say ā€œTest Serviceā€.

Thank You

Regards,
Sonal

Hi Sonal!

At the moment, the list log entries endpoint does not have the ability to filter by a specific service. To get around this, you may consider one of the following approaches:

  • Use the general log entries endpoint and include services. From there, you can parse through the results to record the entries with the desired service.
  • Alternatively, you can use the List incidents endpoint and filter for the desired service. Then for each of the incidents in the response, you can call the List log entries for an incident endpoint.