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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...