Getting Data In

Python SDK [list of inputs in input.conf]

fklink
New Member

Hi,

i have 40 inputs [type: monitor] configured in one inputs.conf. Let's call them 001, 002, 003, .... 040

i'm using python sdk to list all available inputs which are configured in inputs.conf file.

As splunk documentation describes i'm using :

for item in inputs:
print ("%s (%s)" % (item.name, item.kind))

Unfortunately splunk lists only the first 37 entries. It looks like:
/path......../001 (monitor)
/path......../002 (monitor)
/path......../003 (monitor)
....
/path......../037 (monitor)

If i use console splunk list monitor i can see all inputs (001 ... 040). Also on web-ui all inputs are there.

If i delete one input (e.g. 002) and list again using

for item in inputs:
print ("%s (%s)" % (item.name, item.kind))

Splunk shows me:
/path......../001 (monitor)
/path......../003 (monitor)
....
/path......../038 (monitor)

So it look's like, python sdk collects only the first 37 listings of inputs.

Is this a known issue? What am I doing wrong?

Many thanks in advance

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...