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!

BSides Splunk 2022 - The Call for Papers is now Open!

TLDR; Main Site: https://bsidessplunk.com CFP Site: https://bsidessplunk.com/cfp CFP Opens: December 15th, ...

Sending Metrics to Splunk Enterprise With the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

What's New in Splunk Cloud Platform 9.0.2208?!

Howdy!  We are happy to share the newest updates in Splunk Cloud Platform 9.0.2208! Analysts can benefit ...