Archive

Adding persistentQueueSize using Splunk API

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