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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...