# Input file path wildcard is not working

**URL:** <https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617>\
**Category:** Logstash\
**Created:** [July 17, 2020, 9:05am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617 "2020-07-17T09:05:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [July 17, 2020, 9:05am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617/1 "2020-07-17T09:05:43Z")

</div>

Hello all,

input file path wildcard is not working,  
As I remember, logstash 6.5.4 don't have the proble,  
while currently 7.6.2 encounter this problem,  
what could be the reason?

Not working:

> ```
> input {
> file {
> path => "/home/abc/xyz/*.csv"
> start_position => "beginning"
> mode => "read"
> }
> }
> 
> ```

Working:

> ```
> input {
> file {
> path => "/home/abc/xyz/data.csv"
> start_position => "beginning"
> mode => "read"
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [July 20, 2020, 9:25am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617/2 "2020-07-20T09:25:36Z")

</div>

any help pls?

---

<div class="post-metadata">

**Author:** ![mmk1995](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmk1995](https://discuss.elastic.co/u/mmk1995)\
**Post date:** [July 21, 2020, 3:42am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617/3 "2020-07-21T03:42:05Z")

</div>

need some help!

---

<div class="post-metadata">

**Author:** ![ash2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ash2/32/45433_2.png) [@ash2](https://discuss.elastic.co/u/ash2)\
**Post date:** [July 21, 2020, 4:16am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617/4 "2020-07-21T04:16:25Z")

</div>

I am not sure about why \* is not working in logstash, but you can use filebeat to read files by giving same path and send it to logstash.

---

<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:** [August 18, 2020, 4:16am UTC](https://discuss.elastic.co/t/input-file-path-wildcard-is-not-working/241617/5 "2020-08-18T04:16:32Z")

</div>

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