Splunk Dev

C# SDK pagination

mrthaggar
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
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...