# How to use multiple filter files in logstash-filter-verifier command

**URL:** <https://discuss.elastic.co/t/how-to-use-multiple-filter-files-in-logstash-filter-verifier-command/270908>\
**Category:** Logstash\
**Created:** [April 21, 2021, 10:33pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-filter-files-in-logstash-filter-verifier-command/270908 "2021-04-21T22:33:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usman18](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@Usman18](https://discuss.elastic.co/u/Usman18)\
**Post date:** [April 21, 2021, 10:33pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-filter-files-in-logstash-filter-verifier-command/270908/1 "2021-04-21T22:33:09Z")

</div>

I am using logstash-filter-verifier to execute my test cases for testing various logstash pipelines. From the git documentation I can see the command that will be used to run those test cases

```
$ path/to/logstash-filter-verifier path/to/syslog.json path/to/filters

```

But I have a problem. I have multiple filters in different files. Now my question is how can I pass several filenames that consists of filters in this command. Kindly please guide me in this regard. With one file that contains filters this command is working.

When i give only folder path that contains my filters it throws the error

`An error occurred while setting up the Logstash environment: Failed to remove the input and output sections: /tmp/760156742/pipeline.d/.DS_Store:1:1 (0): no match found, expected: "#", "filter", "input", "output", [\t\r\n] or EOF`

But when I append the name of a particular file that contains my filter the command is running. Kindly guide me.

---

<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:** [May 19, 2021, 10:33pm UTC](https://discuss.elastic.co/t/how-to-use-multiple-filter-files-in-logstash-filter-verifier-command/270908/2 "2021-05-19T22:33:27Z")

</div>

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