All Apps and Add-ons

How do I create AWS inputs using Splunk's REST API?

ejwade
Contributor

I would like to dynamically create AWS Metadata inputs using Splunk's REST API. When referencing Splunk's documentation, it looks to be incomplete and incorrect.

https://docs.splunk.com/Documentation/AddOns/released/AWS/APIreference

Has anyone done this?

Labels (1)
1 Solution

ejwade
Contributor

After working with support, it sounds like Splunk will update their documentation. For now, I provided the following for reference.

Create an IAM role:

curl -u admin:password https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles  -d name=<name> -d arn=<arn>

Create a Metadata input:

curl -u admin:password https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_aws_metadata -d account=<account> -d aws_iam_role=<aws_iam_role> -d index=<index> -d regions=<regions> -d name=<name>

View solution in original post

ejwade
Contributor

After working with support, it sounds like Splunk will update their documentation. For now, I provided the following for reference.

Create an IAM role:

curl -u admin:password https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_iam_roles  -d name=<name> -d arn=<arn>

Create a Metadata input:

curl -u admin:password https://localhost:8089/servicesNS/nobody/Splunk_TA_aws/splunk_ta_aws_aws_metadata -d account=<account> -d aws_iam_role=<aws_iam_role> -d index=<index> -d regions=<regions> -d name=<name>

Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...