Splunk Search

How to create a DNS regex for our sample DNS logs to make them more meaningful?

jackywsy
Explorer

HI Experts,

I am a fresh guy in SPLUNK Searching. Recently, my team leader needed us to create a DNS regex and make the domain name more meaningful. I thought you guys have more experience at this area and know what our leader needs. Please help or paste any useful links here. :- )

6/30/2015 7:16:20 PM 0B4C PACKET  000020C986D845B0 UDP Rcv 10.10.7.5       d300   Q [0001   D   NOERROR] A      (13)mail(8)google(3)com(0)----------mail.google.com
6/30/2015 7:16:20 PM 0B4C PACKET  001000C986D835B0 UDP Rcv 10.10.7.5       d300   Q [0001   D   NOERROR] A      (3)news8)baidu(3)com(0)-----------news.baidu.com

Thanks so much in advance!

Tags (3)
0 Karma

jawaharas
Motivator
  1. Install the Splunk app - Splunk Add-on for Microsoft Windows DNS
  2. Add below configuration in props.conf to get domain name in human readable format.

    [MSAD:NT6:DNS]
    EXTRACT-question1 = ] (?\w+)\s+(?.)
    EXTRACT-question2 = ] (?[^\s]
    )$
    EVAL-domain = trim(replace(questionname, "(([\d]+))", "."),".")

0 Karma

miteshvohra
Contributor

There are handful number of apps which can help you with field extractions. Have a look at this list and pick what meets your requirement or is the closest.

Mitesh.

0 Karma

jackywsy
Explorer

Thanks for your request ,Mitesh.

I clearly know how to create the field extractions. Is this same like that ?? Do you have methods to manually to add this DNS Domain Name to somewhere that I may need .Then make it happen. Is this possible?

Thanks.

0 Karma

jackywsy
Explorer

Please help

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...