Skip to content

Commit

Permalink
Update fix_dns.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Jun 17, 2020
1 parent 828910d commit 63ccd99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/etc/conf.d/conflib/_splunk/fix_dns.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class FixHostResolver(object):

resolved = socket.gethostbyaddr(ipaddr)
hostname = resolved[0]
log_message['HOST'] = hostname
name, ext = hostname.split('.')[-2:]
log_message['HOST'] = name
except:
pass

Expand Down

0 comments on commit 63ccd99

Please sign in to comment.