Logstash DNS unexpected error

After upgrade to 7.5.1 a got error messages in log:

[2020-01-20T16:00:39,036][ERROR][logstash.filters.dns     ][main] DNS: Unexpected Error. {:field=>"upstream_hostname", :value=>"172.16.21.57", :message=>"Mutex relocking by same thread"}
[2020-01-20T16:00:39,040][ERROR][logstash.filters.dns     ][main] DNS: Unexpected Error. {:field=>"upstream_hostname", :value=>"172.16.22.54", :message=>"Mutex relocking by same thread"}
[2020-01-20T16:00:39,046][ERROR][logstash.filters.dns     ][main] DNS: Unexpected Error. {:field=>"upstream_hostname", :value=>"172.16.32.17", :message=>"Mutex relocking by same thread"}

how to fix this problem?

1 Like

We have the same problem,

				dns {
				id => "elastiflow_dns_dst_hostname"
				nameserver => ["172.16.81.41","172.16.81.42"]
				hit_cache_size => 100000 
				hit_cache_ttl => 3600 
				failed_cache_size => 100000 
				failed_cache_ttl => 3600
				max_retries => 1
				reverse => [ "fqdn_dest" ]
				action => "replace"
				periodic_flush => true
			}

We tried to disable periodic_flush and different size for the cache fields, but nothing change

Does Anyone have a working configuration?

Thank you

@Marco_Longo, @vmanyushin We identified an issue with the logstash-filter-dns plugin, and have pushed out a bugfix. Can you try upgrading your plugin:

bin/logstash-plugin update logstash-filter-dns

And see if the problem still arises?

Thanks for reply, i will update it today and reply about problem after 1- 2 days of usage.

1 Like

@RobBavey thanks, after the upgrade we don't get anymore error. It is going from two days

1 Like

All work correctly, no new errors. Thanks

1 Like

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