All Apps and Add-ons

AWS App - Multiple instances of app on same server. Possible?

murray_burke
New Member

I have been asked to set up an separate instance of the Splunk App for AWS for each of the AWS environments (Dev, Staging, Prod, etc) within the same Splunk Enterprise deployment. Is it possible to run multiple instances of the AWS app in the same distributed environment?

Currently each of the AWS environments has it's own SQS, ID and Key. I have the aws-cloutrail section working for the Dev environment, but I can't get a new instance of the app (I called it aws-cloudtrail-sandpit) working for the sandpit environment. The AWS sandpit environment app I created creating a new index and data input with the sandpit environment details. Even though I created a new index and data input to point to this index the app for the sandpit environment still displays the data from the Dev environment.

Is there a hard-coded reference to the default "aws-cloudtrail" index somewhere in the app? I have been unable to find out where else this needs to be changed, other than the data input.

To make things harder I don't have access to the AWS environments, but I have been assured that the IAM user has all the required permissions.

Regards,

Murray.

0 Karma
1 Solution

Lucas_K
Motivator

Its contained with in \SplunkAppforAWS\default\macros.conf

[aws-cloudtrail-index]
definition = index=aws-cloudtrail

You should be able to just create a copy and put it in \SplunkAppforAWS\local\macros.conf and add in any other extra aws indexes you've created using some normal splunk search language.

[aws-cloudtrail-index]
definition = index=aws-cloudtrail*

OR

[aws-cloudtrail-index]
definition = index=aws-cloudtrail OR index=some_other_index

edit: There are also a bunch of hardcoded references within savedsearches.conf also. You'll need to update those. Probably better to replace them with the macro. ie replace "index=aws-cloudtrail" with "aws-cloudtrail-index" which you previously fixed.

View solution in original post

Lucas_K
Motivator

Its contained with in \SplunkAppforAWS\default\macros.conf

[aws-cloudtrail-index]
definition = index=aws-cloudtrail

You should be able to just create a copy and put it in \SplunkAppforAWS\local\macros.conf and add in any other extra aws indexes you've created using some normal splunk search language.

[aws-cloudtrail-index]
definition = index=aws-cloudtrail*

OR

[aws-cloudtrail-index]
definition = index=aws-cloudtrail OR index=some_other_index

edit: There are also a bunch of hardcoded references within savedsearches.conf also. You'll need to update those. Probably better to replace them with the macro. ie replace "index=aws-cloudtrail" with "aws-cloudtrail-index" which you previously fixed.

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

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 ...