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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...