# Input Exclude File Option with dot in filename behaviour

**URL:** <https://discuss.elastic.co/t/input-exclude-file-option-with-dot-in-filename-behaviour/153645>\
**Category:** Logstash\
**Created:** [October 23, 2018, 3:57pm UTC](https://discuss.elastic.co/t/input-exclude-file-option-with-dot-in-filename-behaviour/153645 "2018-10-23T15:57:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![londonx](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@londonx](https://discuss.elastic.co/u/londonx)\
**Post date:** [October 23, 2018, 3:57pm UTC](https://discuss.elastic.co/t/input-exclude-file-option-with-dot-in-filename-behaviour/153645/1 "2018-10-23T15:57:18Z")

</div>

I have noticed (Logstash 6.4.2) that the file exclude option in the file input plugin does not handle files with dots in the filename.....

e.g. aaa.bbbb-ERRORS-yyyy-mm-dd.log

these work:

```
path => ["C:/Elastic/TestAppLogs/*.log"]
exclude => "*-ERRORS-*"

path => ["C:/Elastic/TestAppLogs/*.log"]
exclude => "*bbbb-ERRORS-*"

```

But including the '.' in the filter of the name doesn't match and therefore it is included in the input:

```
path => ["C:/Elastic/TestAppLogs/*.log"]
exclude => "aaa.bbbb-ERRORS-*"
```

---

<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:** [November 20, 2018, 3:57pm UTC](https://discuss.elastic.co/t/input-exclude-file-option-with-dot-in-filename-behaviour/153645/2 "2018-11-20T15:57:22Z")

</div>

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