<?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 get column from csv file to insert in search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614306#M213459</link>
    <description>&lt;P&gt;Your lookup command should have worked, but try this one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup lookupfile.csv id OUTPUT type&lt;/LI-CODE&gt;&lt;P&gt;If that doesn't produce the desired results then please show or explain the results you do get.&amp;nbsp; "it doesn't work" isn't very helpful.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 13:06:33 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-09-23T13:06:33Z</dc:date>
    <item>
      <title>How to get column from csv file to insert in search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614300#M213454</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I use dbxquery and get this result from database:&lt;/P&gt;
&lt;TABLE border="0" width="160" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80" height="20"&gt;id&lt;/TD&gt;
&lt;TD width="80"&gt;count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;123&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;456&lt;/TD&gt;
&lt;TD&gt;24&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;478&lt;/TD&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I have a csv file already put&amp;nbsp; in lookup of Splunk like this:&lt;/P&gt;
&lt;TABLE border="0" width="160" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80" height="20"&gt;id&lt;/TD&gt;
&lt;TD width="80"&gt;type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;123&lt;/TD&gt;
&lt;TD&gt;Machine&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;478&lt;/TD&gt;
&lt;TD&gt;Machine&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;456&lt;/TD&gt;
&lt;TD&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;987&lt;/TD&gt;
&lt;TD&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;789&lt;/TD&gt;
&lt;TD&gt;Toys&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, how can I insert the column "type" from lookup to the search result above?&lt;/P&gt;
&lt;P&gt;Basically this is what I want to achieve:&lt;/P&gt;
&lt;TABLE border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="80" height="20"&gt;id&lt;/TD&gt;
&lt;TD width="80"&gt;count&lt;/TD&gt;
&lt;TD width="80"&gt;type&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;123&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;TD&gt;Machine&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;478&lt;/TD&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;Machine&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="20"&gt;456&lt;/TD&gt;
&lt;TD&gt;24&lt;/TD&gt;
&lt;TD&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;987&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;789&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;Toys&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I tried:&amp;nbsp;|lookup lookupfile.csv id OUTPUT id type but it doesn't work&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Julia&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 15:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614300#M213454</guid>
      <dc:creator>Julia1231</dc:creator>
      <dc:date>2022-09-23T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column from csv file to insert in search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614306#M213459</link>
      <description>&lt;P&gt;Your lookup command should have worked, but try this one.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup lookupfile.csv id OUTPUT type&lt;/LI-CODE&gt;&lt;P&gt;If that doesn't produce the desired results then please show or explain the results you do get.&amp;nbsp; "it doesn't work" isn't very helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614306#M213459</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-23T13:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column from csv file to insert in search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614435#M213544</link>
      <description>&lt;P&gt;I agree that "doesn't work" is not informative and should be avoided in any description.&lt;/P&gt;&lt;P&gt;Additionally, when you "&lt;SPAN&gt;put&amp;nbsp; in lookup of Splunk," did you make a lookup definition? (In addition to upload the CSV file.) &amp;nbsp;Did you name that definition as "lookupfile.csv" or something else? (I usually name my lookups "lookupfile" instead of "lookupfile.csv".)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 21:40:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614435#M213544</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-24T21:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get column from csv file to insert in search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614523#M213578</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry for not making it clear for the "it doesn't work". I meant nothing change in the result search.&lt;/P&gt;&lt;P&gt;Anw, by the end I found the reason, cause I forgot that Splunk cares the case sensitive. In the csv, I put "ID", but in splunk it's "id"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 09:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-column-from-csv-file-to-insert-in-search-result/m-p/614523#M213578</guid>
      <dc:creator>Julia1231</dc:creator>
      <dc:date>2022-09-26T09:31:12Z</dc:date>
    </item>
  </channel>
</rss>

