# Logstash file path input get files with certain words

**URL:** <https://discuss.elastic.co/t/logstash-file-path-input-get-files-with-certain-words/149637>\
**Category:** Logstash\
**Created:** [September 24, 2018, 8:50am UTC](https://discuss.elastic.co/t/logstash-file-path-input-get-files-with-certain-words/149637 "2018-09-24T08:50:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash\_said](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@ash\_said](https://discuss.elastic.co/u/ash_said)\
**Post date:** [September 24, 2018, 8:50am UTC](https://discuss.elastic.co/t/logstash-file-path-input-get-files-with-certain-words/149637/1 "2018-09-24T08:50:59Z")

</div>

I am new to Logstash and am having trouble with inputting only certain files with specific file names I want Logstash to only input files with the file name for example, abc\_bigword\_1234-02.txt and not accept files like abc\_word\_1234-03.txt.

---

<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:** [September 26, 2018, 1:26pm UTC](https://discuss.elastic.co/t/logstash-file-path-input-get-files-with-certain-words/149637/2 "2018-09-26T13:26:53Z")

</div>

What does your Logstash configuration look like? Your file input, specifically.

---

<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:** [October 24, 2018, 1:26pm UTC](https://discuss.elastic.co/t/logstash-file-path-input-get-files-with-certain-words/149637/3 "2018-10-24T13:26:53Z")

</div>

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