The SQS-based S3 input configured within the Splunk Add-on for Amazon Web Services (AWS) stopped ingesting new logs, created tmp files at $SPLUNK_HOME/var/lib/splunk/modinputs/aws_sqs_s3/, and displayed an "OSError: [Errno 28] No space left on device" error.
Ran the below SPL Query to check if there are any errors or warning messages in the _internal logs,
index="_internal" sourcetype=*aws* datainput="input_name"
Found the below Error messages which get generated during each input invocation.
2024-08-13 18:28:34,357 level=CRITICAL pid=2748583 tid=Thread-8 logger=splunk_ta_aws.modinputs.sqs_based_s3.handler pos=handler.py:_process:492 | datainput="wsib_s3_access_logs" start_time=1723486001, message_id="c23b3b69-f8bf-45e2-8151-77776b706a4c" created=1723573714.3353777 expires=1723574014.3354127 job_id=c7c994d0-9e6f-4262-aeb2-f55b00b4f7db | 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 462, in _process
with self._open_temp_file() as cache:
File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/sqs_based_s3/handler.py", line 719, in _open_temp_file
dir=folder, delete=False
File "/opt/splunk/lib/python3.7/tempfile.py", line 547, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/opt/splunk/lib/python3.7/tempfile.py", line 258, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
OSError: [Errno 28] No space left on device: '/opt/splunk/var/lib/splunk/modinputs/aws_sqs_based_s3/wsib_s3_access_logs/tmpv2enac20'When downloading large files, a temporary file is created while the download is in progress. These files are saved under $SPLUNK_HOME/var/lib/splunk/modinput/aws_sqs_s3 (the checkpoint directory).
The SQS_based_s3 input first fetches the messages from the queue and stores the content in the temporary file and after ingesting all the events into the splunk, it will delete those temporary files. During processing the files, if in between any error occurs, the temporary files would stay as is without being deleted. This is a known issue in TA v7.0.0, and it has been fixed in versions released after 7.0.0.
To resolve the issue, the following workaround can be applied:
Remove all temporary files from $SPLUNK_HOME/var/lib/splunk/modinputs/aws_sqs_s3.
Upgrade the add-on to a version released after 7.0.0.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |