S3 location:s3://bucket123/DAG/TASK/2020-04-26T16:01:00+00:00/1.log
'''
The resulting error is :
S3 input: Unable to download remote file {:remote_key=>"bucket123/DAG/TASK/2020-04-26T16:01:00 00:00/1.log", :message=>"The specified key does not exist."}
'''
'''
This issue only occurs when the key consists of the "+" symbol which seems to be replaced with a space when returned to logstash.'''
The key can be found but the file just cannot be downloaded.
As mentioned in Object key and metadata, the + character in a key name might require additional code handling and likely need to be URL encoded or referenced as HEX.
Could you try to change the prefix value accordingly? You could use this online tool to get the encoded string. For example:
XXXX/yyyy/2020-06-27T12:00:00+00:00 would be become XXXX%2Fyyyy%2F2020-06-27T12%3A00%3A00%2B00%3A00
Let us know if that works.
Note: FYI, there is an existing issue for the same problem in the respective Github repository.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.