# Path filename pattern problem

**URL:** <https://discuss.elastic.co/t/path-filename-pattern-problem/121462>\
**Category:** Logstash\
**Created:** [February 26, 2018, 9:58am UTC](https://discuss.elastic.co/t/path-filename-pattern-problem/121462 "2018-02-26T09:58:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Majuan](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Majuan](https://discuss.elastic.co/u/Majuan)\
**Post date:** [February 26, 2018, 9:58am UTC](https://discuss.elastic.co/t/path-filename-pattern-problem/121462/1 "2018-02-26T09:58:41Z")

</div>

When I'm trying to make a filename pattern to get all log files : "logs\Testlog4j\*.log" , it doesn't work, no data is sent to Elasticsearch. But when I specify the log file name, it works.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 26, 2018, 10:55am UTC](https://discuss.elastic.co/t/path-filename-pattern-problem/121462/2 "2018-02-26T10:55:03Z")

</div>

Try using forward slashes and an absolute path instead of a relative one.

---

<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:** [March 26, 2018, 10:55am UTC](https://discuss.elastic.co/t/path-filename-pattern-problem/121462/3 "2018-03-26T10:55:24Z")

</div>

Closed on March 26, 2018, 10:55am UTC

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