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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...