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.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

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

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...