You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How was the Logstash Plugin installed: as provided (3.1.5) and updated via logstash-filter (3.2.0)
JVM (e.g. java -version): using bundled jdk
OS version (uname -a if on a Unix-like system): docker container
Description of the problem including expected versus actual behavior:
When using the dns filter plugin with reverse, resolve and hit_cache on fields containing only IP addresses, no lookup is done at all. As soon as the cache is disabled, the reverse lookup works.
Some log sources provide host information in a mixed format. Sometimes as IP address and sometimes as hostname/FQDN. This value is copied as reported into the field source.address. Then this value is copied into the fields source.ip and source.domain and the dns filter plugin should do a reverse lookup on the source.domain field and a normal resolve on source.ip. Hence if source.domain would contain an IP address, it will be replaced with the appropriate hostname and source.ip would be left unchanged; and vice versa.
I confirmed with tcpdump, that not a single DNS query is sent to the DNS server. If a hostname/fqdn is specified instead of an ip address, the dns-filter works as expected and replaced the hostname with an ip address in one field an leaves the other one unchanged.
If the hit cache is disabled, the dns-filter replaces the ip address with the hostname in one field, and leaves the other one unchanged.
If the resolve parameter is removed and the hit cache stays enabled, the dns-filter replaces the ip address with the hostname as intended.
Logstash information:
JVM (e.g.
java -version
): using bundled jdkOS version (
uname -a
if on a Unix-like system): docker containerDescription of the problem including expected versus actual behavior:
When using the dns filter plugin with
reverse
,resolve
andhit_cache
on fields containing only IP addresses, no lookup is done at all. As soon as the cache is disabled, the reverse lookup works.Some log sources provide host information in a mixed format. Sometimes as IP address and sometimes as hostname/FQDN. This value is copied as reported into the field
source.address
. Then this value is copied into the fieldssource.ip
andsource.domain
and the dns filter plugin should do a reverse lookup on thesource.domain
field and a normal resolve onsource.ip
. Hence ifsource.domain
would contain an IP address, it will be replaced with the appropriate hostname andsource.ip
would be left unchanged; and vice versa.I confirmed with tcpdump, that not a single DNS query is sent to the DNS server. If a hostname/fqdn is specified instead of an ip address, the dns-filter works as expected and replaced the hostname with an ip address in one field an leaves the other one unchanged.
If the hit cache is disabled, the dns-filter replaces the ip address with the hostname in one field, and leaves the other one unchanged.
If the
resolve
parameter is removed and the hit cache stays enabled, the dns-filter replaces the ip address with the hostname as intended.Steps to reproduce:
Provide logs (if relevant):
Only DEBUG lines of the dns module are contained in the log output
The text was updated successfully, but these errors were encountered: