# Logstash S3 input plugin - prefix wildcard

**URL:** <https://discuss.elastic.co/t/logstash-s3-input-plugin-prefix-wildcard/97982>\
**Category:** Logstash\
**Created:** [August 22, 2017, 9:40pm UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-prefix-wildcard/97982 "2017-08-22T21:40:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tito](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tito](https://discuss.elastic.co/u/Tito)\
**Post date:** [August 22, 2017, 9:40pm UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-prefix-wildcard/97982/1 "2017-08-22T21:40:17Z")

</div>

Hello,

we send logs from our ec2 instances to s3 buckets, to directories like i.e. "logs/name\_of\_the\_server/2017/08/22/httpd/" where 20170822 is current day, httpd - name of the service from which we sent logs,

is it possible to configure input prefix like:  
prefix =\> "logs/\*/2017/08/22/httpd/" or prefix =\> "logs/asterisk/asterisk/asterisk/httpd/" (these configs not working for me)  
so all the data from this date or all the data will be processed by Logstash?  
Or we need data structure like:  
"logs/httpd/name\_of\_the\_server/date/" and then the prefix =\> "logs/httpd/"?

regards,  
Lukasz

---

<div class="post-metadata">

**Author:** ![gooisous](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gooisous/32/21694_2.png) [@gooisous](https://discuss.elastic.co/u/gooisous)\
**Post date:** [August 31, 2017, 5:29am UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-prefix-wildcard/97982/2 "2017-08-31T05:29:58Z")

</div>

I have this same issue. I have beanstalk logs going to /application/instance-id/ and the instance-id changes. I have been trying some variations with no success.  
Sorry for not being of any help, just thought I'd let you know you're not alone lol.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 28, 2017, 5:30am UTC](https://discuss.elastic.co/t/logstash-s3-input-plugin-prefix-wildcard/97982/3 "2017-09-28T05:30:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
