Skip to content

Conversation

cparedes
Copy link
Contributor

@cparedes cparedes commented Dec 9, 2011

Agreed on comments on previous pull request (sorry it took me so long to get this in): debug log will now output the field that the lookup failed on, the IP/hostname, and on SocketError, the entire error message.

…lso output error on SocketError, and show what's causing it and what the exact SocketError message is.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, you can use structured logging now in logstash -

@logger.debug("DNS: couldn't resolve the hostname", :field => field, :hostname => event[field])

Don't worry about updating the patch, this is mainly just for future efforts :)

jordansissel added a commit that referenced this pull request Dec 21, 2011
Fix up DNS filter so it shows field/hostname/IP address on error
@jordansissel jordansissel merged commit 3b58374 into elastic:master Dec 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants