<?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 do I combine data from CSV with data from index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395564#M114863</link>
    <description>&lt;P&gt;Interesting command this &lt;CODE&gt;inputcsv&lt;/CODE&gt; command -&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.3/SearchReference/Inputcsv" target="_blank"&gt;inputcsv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It says -&lt;/P&gt;

&lt;P&gt;For Splunk Enterprise deployments, loads search results from the specified .csv file, which is not modified. The filename must refer to a relative path in $SPLUNK_HOME/var/run/splunk/csv (or $SPLUNK_HOME/var/run/splunk/dispatch// if dispatch = true). If the specified file does not exist and the filename does not have an extension, then the Splunk software assumes it has a filename with a .csv extension.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 21:24:52 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2020-09-29T21:24:52Z</dc:date>
    <item>
      <title>How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395561#M114860</link>
      <description>&lt;P&gt;Now ,I have a lookup named &lt;CODE&gt;exchange.csv&lt;/CODE&gt; , and &lt;CODE&gt;index="exchange_data"&lt;/CODE&gt;&lt;BR /&gt;
The data in the  &lt;CODE&gt;exchange.csv&lt;/CODE&gt; is extracted from  &lt;CODE&gt;index="exchange_data"&lt;/CODE&gt;It contains the fields extracted from the  index data : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Sys_Name         App_Name
sys1              app1
sys2              app2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;such as :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5838i6F41FB744A43FD49/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
there are fields in the  index="exchange_data" : ID,priority;&lt;BR /&gt;
I want to get a table contains  : ID ,priority, sysname ,appname&lt;BR /&gt;
such as :&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5839i7367BAEC4C25AE1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
How can I combine them?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 08:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395561#M114860</guid>
      <dc:creator>WXY</dc:creator>
      <dc:date>2018-09-29T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395562#M114861</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;index=exchange_data | lookup exchange.csv Sys_Name as host OUTPUT App_Name | table _time ID, Priority Sys_Name, App_Name&lt;/P&gt;

&lt;P&gt;You have to have a field in your data that matches a field in your lookup.&lt;BR /&gt;
They must match the field name and the value with cAsE sensitivity.&lt;/P&gt;

&lt;P&gt;If Sys_Name matches the host field in your exchange_data index then my search above would work fine.  If you don’t have any fields in your data that match your lookup, you can’t really use the lookup.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Lookup" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395562#M114861</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395563#M114862</link>
      <description>&lt;P&gt;but I can only use this command ：&lt;CODE&gt;|inputcsv&lt;/CODE&gt; &lt;BR /&gt;
Other commands cannot query my csv file&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 01:33:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395563#M114862</guid>
      <dc:creator>WXY</dc:creator>
      <dc:date>2018-09-30T01:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395564#M114863</link>
      <description>&lt;P&gt;Interesting command this &lt;CODE&gt;inputcsv&lt;/CODE&gt; command -&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.3/SearchReference/Inputcsv" target="_blank"&gt;inputcsv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It says -&lt;/P&gt;

&lt;P&gt;For Splunk Enterprise deployments, loads search results from the specified .csv file, which is not modified. The filename must refer to a relative path in $SPLUNK_HOME/var/run/splunk/csv (or $SPLUNK_HOME/var/run/splunk/dispatch// if dispatch = true). If the specified file does not exist and the filename does not have an extension, then the Splunk software assumes it has a filename with a .csv extension.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395564#M114863</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2020-09-29T21:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395565#M114864</link>
      <description>&lt;P&gt;And the fields in the exchange.csv are custom and do not exist in the data. The field value is in the data&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 01:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395565#M114864</guid>
      <dc:creator>WXY</dc:creator>
      <dc:date>2018-09-30T01:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395566#M114865</link>
      <description>&lt;P&gt;I know this .But I can not use it to associate  &lt;CODE&gt;exchange.csv&lt;/CODE&gt; with &lt;CODE&gt;index = exchange_data&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 01:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395566#M114865</guid>
      <dc:creator>WXY</dc:creator>
      <dc:date>2018-09-30T01:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395567#M114866</link>
      <description>&lt;P&gt;If 0 fields in the csv match 0 fields in your data.  Then you’ll not be able to use the lookup in a traditional manner.&lt;/P&gt;

&lt;P&gt;Instead you could do this&lt;/P&gt;

&lt;P&gt;| inputlookup yourloolup.csv&lt;BR /&gt;
| append [ search index=exchange_data]&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 11:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395567#M114866</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-10-01T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from CSV with data from index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395568#M114867</link>
      <description>&lt;P&gt;Hi @wxy,&lt;/P&gt;

&lt;P&gt;Did either of the answers below solve your problem? If so, please resolve this post by approving one of them! &lt;BR /&gt;
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 19:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-CSV-with-data-from-index/m-p/395568#M114867</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-10-01T19:29:40Z</dc:date>
    </item>
  </channel>
</rss>

