
LiamE.28567 (Customer) asked a question.
I am using the GetLogs api from Okta in a C* console application to collect audit logs for my company. I am trying to figure out if pagination is required for this api, and if so, how to implement it. Here is my current code (partly found at https://developer.okta.com/blog/2017/10/04/aspnet-authorization):
var client = new OktaClient(new OktaClientConfiguration
{
OktaDomain = <oktaDomain>,
Token = <token>
});
ICollectionClient<ILogEvent> response = client.Logs.GetLogs("2021-04-26T13:28:55.811-04:00", "2021-04-26T13:29:05.811-04:00", null, null, null, "ASCENDING", null);
These are the parameters. I can't find any documentation on the specific method:

Our SDK should be paginating results for Collections, as documented here: https://github.com/okta/okta-sdk-dotnet#list-all-users
Are you not seeing the complete list of logs for the queried time in the Collection returned by GetLogs?
The "q" parameter can be used to filter for log events matching provided keywords. You may want to check out the API reference for this endpoint to see what kind of attributes you can filter against: https://developer.okta.com/docs/reference/api/system-log/#keyword-filter