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.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.