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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...