All Apps and Add-ons

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
kwargs = {"persistentQueueSize": "50MB"}
# Update changes on the server

However, getting error message like this:

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.


Best regards

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

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...