<?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: Top DNS queries from DNS logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35831#M6523</link>
    <description>&lt;P&gt;Thank you very much. That works&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2012 18:20:28 GMT</pubDate>
    <dc:creator>tevgey23</dc:creator>
    <dc:date>2012-08-15T18:20:28Z</dc:date>
    <item>
      <title>Top DNS queries from DNS logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35829#M6521</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I wanted to know what would be the best way to see the top 20  FQDN coming from DNS &lt;/P&gt;

&lt;P&gt;To get to the results below I had to run this command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="MyDNSlog" sourcetype=dns | rex mode=sed "s/\(\d+\)/./g" 

8/15/2012 10:27:11 AM 08E8 PACKET  000000000443D750 UDP Snd 192.168.44.2     0f93 R Q [8085 A DR  NOERROR] A      .google.com.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;host=MYDNS   Options|  sourcetype=dns   Options|  source=C:\dir\dns444.log   Options| timeendpos=22  Options&lt;/P&gt;

&lt;P&gt;How can I further extract the domain name in order to view top 20 DNS queries&lt;/P&gt;

&lt;P&gt;Thank you  &lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 16:38:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35829#M6521</guid>
      <dc:creator>tevgey23</dc:creator>
      <dc:date>2012-08-15T16:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Top DNS queries from DNS logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35830#M6522</link>
      <description>&lt;P&gt;If you want the &lt;CODE&gt;google.com&lt;/CODE&gt; or &lt;CODE&gt;amazon.com&lt;/CODE&gt; or &lt;CODE&gt;dummy.domain.here&lt;/CODE&gt; at the end of the event, something like this should do;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex "\s+\.(?&amp;lt;domain&amp;gt;.+)\.$" | top 20 domain
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 17:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35830#M6522</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-15T17:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Top DNS queries from DNS logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35831#M6523</link>
      <description>&lt;P&gt;Thank you very much. That works&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 18:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Top-DNS-queries-from-DNS-logs/m-p/35831#M6523</guid>
      <dc:creator>tevgey23</dc:creator>
      <dc:date>2012-08-15T18:20:28Z</dc:date>
    </item>
  </channel>
</rss>

