Details
Whenever Splunk Add-on for AWS is upgraded from 5.2.0 to 6.2.0, S3 bucker data will not show up in Splunk as latest version requires additional permission for SQS on AWS side
Found the below exceptions related to AWS permission
level=CRITICAL pid=27190 tid=Thread-10 logger=splunk_ta_aws.modinputs.sqs_based_s3.handler pos=handler.py:_process:430 | datainput="controltower-config-logs" start_time=1663362672, message_id="945e9fa9-6631-4f85-9ee1-fa534d979571" created=1663364422.4163954 ttl=600 job_id=977abbe0-4e47-40ac-bbec-832a6b8c9743 | message="An error occurred while processing the message."
Traceback (most recent call last):
File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/sqs_based_s3/handler.py", line 413, in _process
headers = self._download(record, cache, session)
File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/sqs_based_s3/handler.py", line 538, in _download
return self._s3_agent.download(record, cache, session)
File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/sqs_based_s3/handler.py", line 703, in download
return bucket.fetch(s3_bkt, key, fileobj, **condition)
File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/common/s3.py", line 84, in fetch
response = client.get_object(Bucket=bucket, Key=key, **kwargs)
File "/opt/splunk/etc/apps/Splunk_TA_aws/lib/botocore/client.py", line 508, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/opt/splunk/etc/apps/Splunk_TA_aws/lib/botocore/client.py", line 911, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
Need to provide the below required permission to AWS account for SQS
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:GetQueueUrl",
"sqs:ReceiveMessage",
"sqs:SendMessage",
"sqs:DeleteMessage",
"sqs:GetQueueAttributes",
"sqs:ListQueues",
"s3:GetObject",
"s3:GetObjectVersion",
"kms:Decrypt"
],
"Resource": "*"
}
]
}
Please refer this document for more information.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |