<?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: how to use lookups to compare a csv against indexed DNS data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-lookups-to-compare-a-csv-against-indexed-DNS-data/m-p/152127#M42634</link>
    <description>&lt;P&gt;You can configure match_type=WILDCARD(domain) in transforms.conf for your lookup file.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Addfieldsfromexternaldatasources#Optional_field_matching_rules_for_lookup_configurations"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Addfieldsfromexternaldatasources#Optional_field_matching_rules_for_lookup_configurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that your lookup file would need to have a wildcard, so your file would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;domain,dyns_dns_servcice (csv header)
*3322.org, true (values)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Feb 2015 03:02:28 GMT</pubDate>
    <dc:creator>the_wolverine</dc:creator>
    <dc:date>2015-02-27T03:02:28Z</dc:date>
    <item>
      <title>how to use lookups to compare a csv against indexed DNS data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-lookups-to-compare-a-csv-against-indexed-DNS-data/m-p/152126#M42633</link>
      <description>&lt;P&gt;I am ingesting DNS records into my splunk system.  I want to compare these events again a list of Dynamic DNS domains.  I've been able to incorporate the CSV of dynamics DNS into Splunk, but when I search I am only finding values that equal the domain, not values that "contain" the domain.&lt;/P&gt;

&lt;P&gt;example events: (dns field is called "domain" in my splunk instance)&lt;BR /&gt;
3322.org&lt;BR /&gt;
test.3322.org&lt;/P&gt;

&lt;P&gt;CSV file format: (called "dynamic_dns")&lt;BR /&gt;
domain,dyns_dns_servcice (csv header)&lt;BR /&gt;
3322.org, true (values)&lt;/P&gt;

&lt;P&gt;Here's the Splunk query I used:&lt;BR /&gt;
sourcetype="dns" | lookup dynamic_dns domain | search dyn_dns_service=true&lt;/P&gt;

&lt;P&gt;This splunk query returns results for "3322.org", but not the other domain "test.3322.org".   &lt;/P&gt;

&lt;P&gt;What would be a query to run that would capture both domains?  I can't figure out the correct search syntax.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-lookups-to-compare-a-csv-against-indexed-DNS-data/m-p/152126#M42633</guid>
      <dc:creator>vitalechris15</dc:creator>
      <dc:date>2020-09-28T19:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to use lookups to compare a csv against indexed DNS data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-lookups-to-compare-a-csv-against-indexed-DNS-data/m-p/152127#M42634</link>
      <description>&lt;P&gt;You can configure match_type=WILDCARD(domain) in transforms.conf for your lookup file.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Addfieldsfromexternaldatasources#Optional_field_matching_rules_for_lookup_configurations"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Addfieldsfromexternaldatasources#Optional_field_matching_rules_for_lookup_configurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that your lookup file would need to have a wildcard, so your file would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;domain,dyns_dns_servcice (csv header)
*3322.org, true (values)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Feb 2015 03:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-lookups-to-compare-a-csv-against-indexed-DNS-data/m-p/152127#M42634</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2015-02-27T03:02:28Z</dc:date>
    </item>
  </channel>
</rss>

