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!

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...

Stay Connected: Your Guide to July Tech Talks, Office Hours, and Webinars!

What are Community Office Hours?Community Office Hours is an interactive 60-minute Zoom series where ...