# S3 input plugin problem with %

**URL:** <https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928>\
**Category:** Logstash\
**Created:** [January 8, 2025, 10:05am UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928 "2025-01-08T10:05:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_IT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martin_it/32/140538_2.png) [@Martin\_IT](https://discuss.elastic.co/u/Martin_IT)\
**Post date:** [January 8, 2025, 10:05am UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928/1 "2025-01-08T10:05:51Z")

</div>

Hi, we use S3 input plugin and we have a problem with backup of indexed files. Our files contain character % because URL encoded format. Indexing is OK but than when file should be moved to the archive we receive errors:  
Error: The specified key does not exist. and Exception: Aws::S3::Errors::NoSuchKey  
The plugin is restarted file indexed again and error. It stops the whole pipeline, and new files are not indexed ...

Is there any way to use this plugin with backup option and character % in the name of the file?

Thank you

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 9, 2025, 3:23pm UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928/2 "2025-01-09T15:23:08Z")

</div>

Hello,

Please share your pipeline configuration and the exact log you are getting.

---

<div class="post-metadata">

**Author:** ![Martin\_IT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martin_it/32/140538_2.png) [@Martin\_IT](https://discuss.elastic.co/u/Martin_IT)\
**Post date:** [January 9, 2025, 4:05pm UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928/3 "2025-01-09T16:05:24Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/5/55b6af3da7915388402911afb1e4eeb44f3847f4.png)

---

<div class="post-metadata">

**Author:** ![Martin\_IT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martin_it/32/140538_2.png) [@Martin\_IT](https://discuss.elastic.co/u/Martin_IT)\
**Post date:** [January 9, 2025, 4:06pm UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928/4 "2025-01-09T16:06:07Z")

</div>

[2025-01-07T13:43:23,555][ERROR][logstash.javapipeline][s3-cognito][ae84138f2292f0daed2086b40adbc1c94794db398deff4feb67588bc25e239f5] A plugin had an unrecoverable error. Will restart this plugin.

| Error: The specified key does not exist. | WSO2-LOGSTASH |
| --- | --- |
| January 07, 2025 at 14:43 (UTC+1:00) | Exception: Aws::S3::Errors::NoSuchKey |

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 9, 2025, 4:22pm UTC](https://discuss.elastic.co/t/s3-input-plugin-problem-with/372928/5 "2025-01-09T16:22:58Z")

</div>

You would have more log lines around the same time, please share them as well.

If I understood correctly you can download objects from the s3 bucket and logstash can process them.

But since you have the `backup_to_bucket` option, it cannot write to the bucket because your filenames have special characters that may be causing some issue?

Logstash uses the AWS SDK, not sure if you can solve this in Logstash as you would need to rename the files with the special characters and there is no option to do that.
