<?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 inputlookup csv two files get the data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354150#M104817</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two input lookup files. input1.csv and input2.csv&lt;/P&gt;

&lt;P&gt;Am getting "Maintenance for application" as value for say one of the columns from input1.csv file. &lt;BR /&gt;
Now I want to search word &lt;EM&gt;application&lt;/EM&gt; in input2.csv file and try to get field1 and field2 from input2.csv file along with field3 and field4 from input1.csv file. &lt;BR /&gt;
Please help me with the query. &lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 15:42:20 GMT</pubDate>
    <dc:creator>surekhasplunk</dc:creator>
    <dc:date>2017-11-07T15:42:20Z</dc:date>
    <item>
      <title>inputlookup csv two files get the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354150#M104817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two input lookup files. input1.csv and input2.csv&lt;/P&gt;

&lt;P&gt;Am getting "Maintenance for application" as value for say one of the columns from input1.csv file. &lt;BR /&gt;
Now I want to search word &lt;EM&gt;application&lt;/EM&gt; in input2.csv file and try to get field1 and field2 from input2.csv file along with field3 and field4 from input1.csv file. &lt;BR /&gt;
Please help me with the query. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 15:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354150#M104817</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-07T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup csv two files get the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354151#M104818</link>
      <description>&lt;P&gt;Assuming input1.csv has following columns (apart from other possible columns)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;app_description (which contains the text "Maintenance for **application**"
field3 
field4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's the column name in input2.csv which contains word &lt;STRONG&gt;application&lt;/STRONG&gt;? Also, is it a full match OR partial match?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354151#M104818</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-07T16:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup csv two files get the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354152#M104819</link>
      <description>&lt;P&gt;Hi @somesoni2&lt;/P&gt;

&lt;P&gt;Assume input2.csv file has a column named app_name which has got a match for application and not the exact name. &lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354152#M104819</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-08T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup csv two files get the data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354153#M104820</link>
      <description>&lt;P&gt;You can try this .. if you are working on the same use case..&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/589532/lookup-two-csv-pattern-match-query.html"&gt;https://answers.splunk.com/answers/589532/lookup-two-csv-pattern-match-query.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;| inputlookup input1 | join type=outer field1 [| inputlookup input2 | eval field1=case(field3 == "application file", "application support", field3 == "cto maintenance", "technology maintenance") | search field3="application*" | rename field2 as field21 ] | table field1, field2, field21, field3&lt;/P&gt;

&lt;P&gt;if possible avoid same field name in your two input csv files. or you can rename that at the query time.. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-two-files-get-the-data/m-p/354153#M104820</guid>
      <dc:creator>anjambha</dc:creator>
      <dc:date>2017-11-10T07:33:27Z</dc:date>
    </item>
  </channel>
</rss>

