# Change Logging Level of Filter

**URL:** <https://discuss.elastic.co/t/change-logging-level-of-filter/178964>\
**Category:** Logstash\
**Created:** [April 29, 2019, 4:35pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964 "2019-04-29T16:35:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [April 29, 2019, 4:35pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964/1 "2019-04-29T16:35:20Z")

</div>

I am using the DNS filter which logs a WARN message when it fails to resolve an IP to a hostname. My logstash logs are filling up with these events, which I don't care about. Currently, there are about 300k lines of resolution warnings since the file was created about 11 hours ago. Is there a way to configure the filter to not log the event?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 29, 2019, 4:41pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964/2 "2019-04-29T16:41:01Z")

</div>

A failure of DNS to resolve [is](https://github.com/logstash-plugins/logstash-filter-dns/blob/28f0273d30e2ce3220406679f0634ceb726602e5/lib/logstash/filters/dns.rb#L157) a DEBUG message. Which WARN are you getting?

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [April 29, 2019, 4:42pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964/3 "2019-04-29T16:42:29Z")

</div>

Scrubbed IP from log entries...

```auto
[2019-04-29T00:00:07,630][WARN][logstash.filters.dns] DNS: timeout on resolving address. {:field=>"[event_data][IpAddress]", :value=>"xxx.xxx.xxx.xxx"}
[2019-04-29T00:00:07,630][WARN][logstash.filters.dns] DNS: timeout on resolving address. {:field=>"[event_data][IpAddress]", :value=>"xxx.xxx.xxx.xxx"}

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 29, 2019, 5:34pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964/4 "2019-04-29T17:34:09Z")

</div>

It will always log a WARN for that. Increasing the timeout might reduce the frequency. Half a second seems remarkably short as the default.

---

<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 27, 2019, 5:34pm UTC](https://discuss.elastic.co/t/change-logging-level-of-filter/178964/5 "2019-05-27T17:34:31Z")

</div>

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