Giving Back Some: DNS Syslog Trigger


#1

Not sure if this is useful to everyone but I figured out how to get DNS Failures to send to Syslog. I thought I would share the trigger.

if (DNS.error != null) { 
    RemoteSyslog.info( " eh_event=DNSERROR" + " client_ip=" + Flow.client.ipaddr + " server_ip=" + Flow.server.ipaddr+ " dns_query=" + DNS.qname ); 
}