# (5.x) Filter config fails/terminates silently

**URL:** <https://discuss.elastic.co/t/5-x-filter-config-fails-terminates-silently/66788>\
**Category:** Logstash\
**Created:** [November 21, 2016, 9:50pm UTC](https://discuss.elastic.co/t/5-x-filter-config-fails-terminates-silently/66788 "2016-11-21T21:50:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![strarsis](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@strarsis](https://discuss.elastic.co/u/strarsis)\
**Post date:** [November 21, 2016, 9:50pm UTC](https://discuss.elastic.co/t/5-x-filter-config-fails-terminates-silently/66788/1 "2016-11-21T21:50:32Z")

</div>

With Logstash 5.x, filter configuration in conf.d fails silently and Logstash terminates without further notice, it worked in Logstash prior to 5.x. Input + output configuration also exists and Logstash runs fine and without terminating when the nginx filter configuration has been removed.

```
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties.
(exits)

```

Checking the configuration using --config.test\_and\_exit:

```
Sending Logstash logs to /var/log/logstash which is now configured via log4j2.properties.
Configuration OK
(exits)

```

Logstash main configuartion file (without commented out lines):

```
path.data: /var/lib/logstash
path.config: /etc/logstash/conf.d
path.logs: /var/log/logstash

```

Filter configuration file:

```
filter {
  if [type] == "nginx-access" {
    grok {
      patterns_dir => ["/etc/logstash/pattern"]
      match => { "message" => "%{NGINXACCESS}" }
    }
  }
}

```

If there is an issue with the filter or used pattern, Logstash should log about it, also the configuration test should instead fail, so this can be considered as a bug?

Edit: The patterns directory (/etc/logstash/pattern) was not present, still an error should be logged.

---

<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:** [December 19, 2016, 9:50pm UTC](https://discuss.elastic.co/t/5-x-filter-config-fails-terminates-silently/66788/2 "2016-12-19T21:50:42Z")

</div>

Closed on December 19, 2016, 9:50pm UTC

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