Knowledge Management

How to paginate results of collection.data.query?

smitapatankar
Engager

How to paginate results from kv store collection.data.query()?
because if i fetch results as it is, I get limited number of records, while the real number of records are huge.
More likely, it is because of the size of data fetched rather than the record numbers.
It is able to fetch data which when stored in txt is upto 50-55 mb only.

code:

import json
import splunklib.client as client
service = client.connect(
host='xxxx', port=xxxx, username='xxxx', password='xxxxx', owner='xxxxx', app='xxxx')
collection = service.kvstore['xxxx'] # kv store name
response = collection.data.query()
print(len(response))

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...