Developing for Splunk Enterprise

C# SDK pagination

New Member

I'm trying to implement the C# SDK to perform a search (which returns approx 100k results). I'd like to paginate this, so I can return the results in blocks of ten records at a time, but there doesn't seem to be any documentation on how to do this with the C# sdk. I can see mention of a Pagination class, but I don't know how to implement it.

I'm currently using the service.ExportSearchResultsAsync("query").Result to stream the results back, but I'm guessing there is a better way to get the results in a paginated way?

0 Karma