Getting Data In

Listing all Client

Loves-to-Learn Lots

I am getting only 100 data using this option, could someone suggest how we can get all client details.

import splunklib.client as client

import splunklib.results as results

import json

service = client.connect(host = 'SPLUNKSERVER', port=8089, username = 'admin', password = 'PASSWEORD')

kwargs_oneshot = {"earliest_time": "-2h",

                           "latest_time": "now"}

searchquery_oneshot = "| metadata type=hosts index=wineventlog, **{'exec_mode':'blocking'}"

oneshotsearch_results =, **kwargs_oneshot)

oneshotsearch_results =

reader = results.ResultsReader(oneshotsearch_results)

for item in reader:


Labels (1)
0 Karma
Get Updates on the Splunk Community!

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...

Ready, Set, SOAR: How Utility Apps Can Up Level Your Playbooks!

 WATCH NOW Powering your capabilities has never been so easy with ready-made Splunk® SOAR Utility Apps. Parse ...