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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...