All Apps and Add-ons

Adding persistentQueueSize using Splunk API

tawrid
New Member

Hi there!

I am trying to create an input using Splunk Python SDK which will contain the attribute of persistentQueueSize and queueSize. My approach was to create the input first and then update those parameters using the following couple of line of codes.

# Modify a property
kwargs = {"queueSize": "5MB"}
# Update changes on the server
myinput.update(**kwargs).refresh()
kwargs = {"persistentQueueSize": "50MB"}
# Update changes on the server
myinput.update(**kwargs).refresh()

However, getting error message like this:


HTTPError(response)
splunklib.binding.HTTPError: HTTP 400 Bad Request --

In handler 'raw': Argument "queueSize" is not supported by this handler.

Splunk version: 6.2.13

Could you please advise what the correct codes should be?
Appreciate your earliest response on this.

Cheers.

Best regards
Hyder

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

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...

From Alert to Resolution: How Splunk Observability Helps SREs Navigate Critical ...

It's 3:17 AM, and your phone buzzes with an urgent alert. Wire transfer processing times have spiked, and ...