<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unbound DNS Resolver Logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534138#M89671</link>
    <description>&lt;LI-CODE lang="markup"&gt;|makeresults
| eval _raw="Dec 27 01:47:46 pvlpfSense01 unbound: [91480:1] info: resolving acceptor.mcafee-mvision-mobile.com. A IN
Dec 27 01:47:46 pvlpfSense01 unbound: [91480:0] info: resolving ns-1608.awsdns-09.co.uk. AAAA IN"
| multikv noheader=t
| table _raw
| rex "(?&amp;lt;time&amp;gt;\S+ \d\d \S+) (?&amp;lt;sensor&amp;gt;\S+) (?&amp;lt;bound&amp;gt;\S+): \[(?&amp;lt;session&amp;gt;\d+:\d+)\] info: resolving (?P&amp;lt;query&amp;gt;\S+)\s(?P&amp;lt;query_type&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 27 Dec 2020 09:11:03 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-12-27T09:11:03Z</dc:date>
    <item>
      <title>Unbound DNS Resolver Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534134#M89670</link>
      <description>&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Dec&lt;/SPAN&gt; &lt;SPAN class="t"&gt;27&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:47:46&lt;/SPAN&gt; &lt;SPAN class="t"&gt;pvlpfSense01&lt;/SPAN&gt; &lt;SPAN class="t"&gt;unbound:&lt;/SPAN&gt; [&lt;SPAN class="t"&gt;91480:1&lt;/SPAN&gt;] &lt;SPAN class="t"&gt;info:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;resolving&lt;/SPAN&gt; &lt;SPAN class="t"&gt;acceptor.mcafee-mvision-mobile[.]com.&lt;/SPAN&gt; &lt;SPAN class="t"&gt;A&lt;/SPAN&gt; &lt;SPAN class="t"&gt;IN&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Dec&lt;/SPAN&gt; &lt;SPAN class="t"&gt;27&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:47:46&lt;/SPAN&gt; &lt;SPAN class="t"&gt;pvlpfSense01&lt;/SPAN&gt; &lt;SPAN class="t"&gt;unbound:&lt;/SPAN&gt; [&lt;SPAN class="t"&gt;91480:0&lt;/SPAN&gt;] &lt;SPAN class="t"&gt;info:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;resolving&lt;/SPAN&gt; &lt;SPAN class="t"&gt;ns-1608.awsdns-09[.]co[.]uk.&lt;/SPAN&gt; &lt;SPAN class="t"&gt;AAAA&lt;/SPAN&gt; &lt;SPAN class="t"&gt;IN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;```&lt;BR /&gt;Above I have included 2 separate events. Note * I added brackets for sanitization in this post, the real events have no square brackets. These are from a DNS Resolver.&lt;BR /&gt;I've been using a splunk app I've modified to handle extraction of fields.&lt;BR /&gt;The current stanza in props.conf is:&lt;BR /&gt;EXTRACT-queries = info: resolving (?P&amp;lt;query&amp;gt;(?:.[^\.\s]+)*)\.\s(?P&amp;lt;query_type&amp;gt;\S+)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Ive also tried: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;EXTRACT-queries = info: resolving (?P&amp;lt;query&amp;gt;[\S?]+)\.\s(?P&amp;lt;query_type&amp;gt;\S+)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;Both of these work fine testing outside splunk. But have strange behavior when used in splunk.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;BR /&gt;This annoyingly is including the ending period in the query field. Which I specifically wrote the regex to exclude.&lt;BR /&gt;query = "acceptor.mcafee-mvision-mobile[.]com&lt;U&gt;.&lt;/U&gt;", query_type = "A"&lt;BR /&gt;query = "ns-1608.awsdns-09[.]co[.]uk&lt;U&gt;.&lt;/U&gt;", query_type = "AAAA"&lt;BR /&gt;&lt;BR /&gt;I'm no splunk expert nor am I a regex expert but I don't see how the match for the query group is including the last period after the TLD.&lt;BR /&gt;Any help or suggestions would be appreciated. I think ive given enough info but if you need more let me know.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 27 Dec 2020 07:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534134#M89670</guid>
      <dc:creator>ArmbrusterC</dc:creator>
      <dc:date>2020-12-27T07:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unbound DNS Resolver Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534138#M89671</link>
      <description>&lt;LI-CODE lang="markup"&gt;|makeresults
| eval _raw="Dec 27 01:47:46 pvlpfSense01 unbound: [91480:1] info: resolving acceptor.mcafee-mvision-mobile.com. A IN
Dec 27 01:47:46 pvlpfSense01 unbound: [91480:0] info: resolving ns-1608.awsdns-09.co.uk. AAAA IN"
| multikv noheader=t
| table _raw
| rex "(?&amp;lt;time&amp;gt;\S+ \d\d \S+) (?&amp;lt;sensor&amp;gt;\S+) (?&amp;lt;bound&amp;gt;\S+): \[(?&amp;lt;session&amp;gt;\d+:\d+)\] info: resolving (?P&amp;lt;query&amp;gt;\S+)\s(?P&amp;lt;query_type&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 27 Dec 2020 09:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534138#M89671</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-27T09:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unbound DNS Resolver Logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534155#M89672</link>
      <description>&lt;P&gt;Thats smart, I hadn't thought of using eval to feed in data with a search time extraction. Thanks for that piece.&lt;BR /&gt;&lt;BR /&gt;So using this method to test it appears the match is correct. So the problem Im having is likely related to the App changes Ive done&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults
| eval _raw="Dec 27 01:47:46 pvlpfSense01 unbound: [91480:1] info: resolving acceptor.mcafee-mvision-mobile.com. A IN
Dec 27 01:47:46 pvlpfSense01 unbound: [91480:0] info: resolving ns-1608.awsdns-09.co.uk. AAAA IN
Dec 27 16:00:51 pvlpfSense01 unbound: [15920:1] info: resolving (init part 3): 165.185.in-addr.arpa. DS IN"
| multikv noheader=t
| table _raw
| rex "(?&amp;lt;time&amp;gt;\S+ \d\d \S+) (?&amp;lt;sensor&amp;gt;\S+) (?&amp;lt;bound&amp;gt;\S+): \[(?&amp;lt;session&amp;gt;\d+:\d+)\] info: resolving (?:\(init part \d\):\s{2})?(?P&amp;lt;query&amp;gt;[\S?]+)\.\s(?P&amp;lt;query_type&amp;gt;\S+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The example you gave includes the final "." in the FQDN. I will mark your answer as correct since you gave me the piece I was missing to test the extraction in realtime.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 21:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unbound-DNS-Resolver-Logs/m-p/534155#M89672</guid>
      <dc:creator>ArmbrusterC</dc:creator>
      <dc:date>2020-12-27T21:11:30Z</dc:date>
    </item>
  </channel>
</rss>

