Getting Data In

Splunk REST API returns 500 when metadata inputs already exists

Craig1
New Member

Hi there, I'm using this API: https://splunk.github.io/splunk-add-on-for-amazon-web-services/APIreference/

Whenever I send a POST request to create metadata inputs that already exists, I get a 500 Internal Server Error.

Error: Unable to create metadata inputs: Unexpected HTTP status: 500 Internal Server Error (500)

Expected behaviour: Do not return 500, return a payload that indicates that the resource already exists.

Labels (1)
0 Karma

Craig1
New Member

Sorry I should also mention that this also happens with the roles endpoint which is where I got that message.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Ok. First and foremost - do you have the addon installed?

Secondly - did you look what's in the logs?

0 Karma

Craig1
New Member

I'm just an API consumer, so not sure if I have the addon installed (do you have more specific instructions for me to pass on to the Splunk admin?).

As far as logs here is what I see:

<msg type="ERROR">
In handler 'splunk_ta_aws_iam_roles': bad character (52) in reply size</msg>
</messages>

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...