Identify total log entries in API Response

Hi,

We are using following query to get log entries:
https://api.pagerduty.com/log_entries?time_zone=UTC

This gives following parameter in response
……(logs/audits)
“limit”: 100,
“offset”: 0,
“more”: true,
“total”: null

here why “total” is saying null? Is there any way we can get the total count of the log entries?

Thank You

Regards,
Sonal

Hi Sonal,

By default, the total parameter will be returned as null in the response. You can add total=true to your API call to return the total count of the log entries in the response.

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