All Apps and Add-ons

Splunk Cloud - Splunk Add-on for AWS – logGroupName vs logGroupIdentifier in cross-account setup

Leonardo1998
Explorer

Hi everyone,
I'm working with the Splunk Add-on for AWS on Splunk Cloud, and I’ve run into an issue when trying to collect CloudWatch Logs from a cross-account AWS setup.

After digging through the Python code inside the add-on, I discovered that it uses the logGroupName parameter when calling describe_log_streams() via Boto3. However, in cross-account scenarios, AWS requires the use of logGroupIdentifier (with the full ARN of the log group) — and you can’t use both parameters at the same time.

Leonardo1998_0-1746170549971.png

 

So, even though AWS allows log collection across accounts using logGroupIdentifier, the current implementation in the add-on makes it impossible to use this feature correctly.

I was able to identify the exact line of code that causes the issue and verified that simply replacing "logGroupName" with "logGroupIdentifier" solves the problem.

Given that I'm on Splunk Cloud, I have a few questions for those with more experience in similar situations:

  1. Is it possible to modify that single line of Python code directly in the official add-on deployed in Splunk Cloud (maybe through the UI or some workaround), or is that completely locked down?

  2. I could clone the add-on, patch it, and submit it as a custom app — but would running a custom version of the AWS add-on cause issues with future Splunk Support cases? (i.e., would support be denied for data coming from a modified TA?)

  3. More broadly, for anyone who’s set up Splunk in cross-account AWS environments:
    What’s your recommended approach for collecting CloudWatch Logs in this scenario, given the limitations of the official add-on?

Thanks in advance for any insights.

Labels (3)
0 Karma

livehybrid
Super Champion

Hi @Leonardo1998 

You make a good point here, do you know if logGroupIdentifier can be used for non-cross account groups?

To answer your question, you cannot make changes to files from Splunkbase apps in SplunkCloud. Whilst you could clone to app and upload with a unique ID with the amendments, you would be creating a supportability and maintence nightmare for yourself unfortunately. 
I think the best solution at the moment would be to raise it as a bug with Splunk Support and see if they can give you a timeline on a fix.
In the meantime I will see if I can test this change with a non cross account collection. 

 

 

🌟 Did this answer help you? If so, please consider:

    • Adding karma to show it was useful
    • Marking it as the solution if it resolved your issue
    • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing.

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...
OSZAR »