System Log Request Parameter

The reference docs say there’s a “limit” option here:

https://developer.okta.com/docs/reference/api/system-log/#list-events

but it’s not an option when using the Java API for myclient.getLogs.

Any help appreciated.

Hi there,

I tried this endpoint ‘/api/v1/logs?limit=1’ and got one event back from it. What value are you setting your limit to?

I’m actually using the API itself to get the data back. Client interface.

getLogs(String until, String since, String filter, String q, String sortOrder)

https://developer.okta.com/okta-sdk-java/apidocs/index.html?com/okta/sdk/client/Client.html

Looks like my only option is to call the endpoint.

1 Like

The SDKs don’t seen to give an option for a limit. I recommending commenting on it’s github with the suggestion so they can implement it for the future.