<?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 create an automatic lookup where lookup input fields are similar to the CSV fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210946#M61667</link>
    <description>&lt;P&gt;Hi dwalker1,&lt;/P&gt;

&lt;P&gt;you can have a look at the &lt;CODE&gt;match_type&lt;/CODE&gt; option in &lt;CODE&gt;transforms.conf&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf&lt;/A&gt; which supports wildcard matches. See this answers &lt;A href="https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html"&gt;https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html&lt;/A&gt; for a good example.&lt;/P&gt;

&lt;P&gt;If this does not work for you, you could use &lt;CODE&gt;eval&lt;/CODE&gt; and the &lt;CODE&gt;match&lt;/CODE&gt; or &lt;CODE&gt;like&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Comparison_and_Conditional_functions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Comparison_and_Conditional_functions&lt;/A&gt;  functions to normalise or compare the fields.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 20:42:42 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2016-04-20T20:42:42Z</dc:date>
    <item>
      <title>How to create an automatic lookup where lookup input fields are similar to the CSV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210945#M61666</link>
      <description>&lt;P&gt;HI Folks,&lt;/P&gt;

&lt;P&gt;I'm trying to get automatic lookups working for a custom CSV file import. I'm trying to key in on two fields that have similar host names, but not exact.  Is there a way to use something like contains versus equals?&lt;/P&gt;

&lt;P&gt;Examples:&lt;/P&gt;

&lt;P&gt;CSV Lookup Field:  &lt;STRONG&gt;WAN_device_dns&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Splunk Field: &lt;STRONG&gt;Host&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;CSV Lookup Field value: &lt;STRONG&gt;washington_bah.domain.com&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Splunk Fields value: &lt;STRONG&gt;washington_bah-loop7&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I'd like to equate these fields as the same in the automatic field association if the beginning matches since my CSV script automatically generates externally.  If not, I'll have to rewrite the CSV output.  &lt;/P&gt;

&lt;P&gt;Thanks all,&lt;BR /&gt;
G1&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210945#M61666</guid>
      <dc:creator>dwalker1</dc:creator>
      <dc:date>2020-09-29T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an automatic lookup where lookup input fields are similar to the CSV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210946#M61667</link>
      <description>&lt;P&gt;Hi dwalker1,&lt;/P&gt;

&lt;P&gt;you can have a look at the &lt;CODE&gt;match_type&lt;/CODE&gt; option in &lt;CODE&gt;transforms.conf&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf&lt;/A&gt; which supports wildcard matches. See this answers &lt;A href="https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html"&gt;https://answers.splunk.com/answers/52580/can-we-use-wildcard-characters-in-a-lookup-table.html&lt;/A&gt; for a good example.&lt;/P&gt;

&lt;P&gt;If this does not work for you, you could use &lt;CODE&gt;eval&lt;/CODE&gt; and the &lt;CODE&gt;match&lt;/CODE&gt; or &lt;CODE&gt;like&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Comparison_and_Conditional_functions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/CommonEvalFunctions#Comparison_and_Conditional_functions&lt;/A&gt;  functions to normalise or compare the fields.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 20:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210946#M61667</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-04-20T20:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an automatic lookup where lookup input fields are similar to the CSV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210947#M61668</link>
      <description>&lt;P&gt;Thanks for the quick response.  I'll have to dig further but it looks like what I'm looking for.  Thanks again!&lt;/P&gt;

&lt;P&gt;G1&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 12:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-an-automatic-lookup-where-lookup-input-fields-are/m-p/210947#M61668</guid>
      <dc:creator>dwalker1</dc:creator>
      <dc:date>2016-04-22T12:17:43Z</dc:date>
    </item>
  </channel>
</rss>

