<?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: Why is the inputlookup not returning any records? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364344#M107528</link>
    <description>&lt;P&gt;When you ran &lt;CODE&gt;inputlookup prices&lt;/CODE&gt; did your search look exactly like that?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inputlookup&lt;/CODE&gt; is a generating command, and thus must have a leading &lt;CODE&gt;|&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup prices_lookup&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;As to which names you can use for the lookup, your transform is named &lt;CODE&gt;prices_lookup&lt;/CODE&gt;, and your csv is named &lt;CODE&gt;prices.csv&lt;/CODE&gt;, so either of these would work:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup prices_lookup&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;| inputlookup prices.csv&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Feb 2018 17:56:57 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-11T17:56:57Z</dc:date>
    <item>
      <title>Why is the inputlookup not returning any records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364342#M107526</link>
      <description>&lt;P&gt;I'm running Splunk Enterprise v7.01 running on Server 2012 R2&lt;BR /&gt;
Lookups are not working in the Search App or in the Home Monitor App&lt;/P&gt;

&lt;P&gt;Following the online Tutorial, I downloaded the sample data from Splunk.&lt;BR /&gt;
I created a lookup table called prices using the prices.csv included in the download&lt;/P&gt;

&lt;P&gt;Sample CSV data looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;productId,product_name,price,sale_price,Code
DB-SG-G01,Mediocre Kingdoms,24.99,19.99,A
DC-SG-G02,Dream Crusher,39.99,24.99,B
FS-SG-G03,Final Sequel,24.99,16.99,C
WC-SH-G04,World of Cheese,24.99,19.99,D
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I set the permissions on the prices.csv file to Everyone Read/Write All Apps&lt;BR /&gt;
I configured a Lookup Definition prices_lookup pointing to the prices.csv file&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[prices_lookup]
batch_index_query = 0
case_sensitive_match = 1
filename = prices.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To test my lookup I run the following Query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;'inputlookup prices' also tried 'inputlookup prices_lookup' and 'inputlookup prices.csv'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All of these queries return no records&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 16:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364342#M107526</guid>
      <dc:creator>putrtek</dc:creator>
      <dc:date>2018-02-11T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the inputlookup not returning any records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364343#M107527</link>
      <description>&lt;P&gt;I'm guessing you forgot the leading pipe to run a non-search command: &lt;CODE&gt;| inputlookup prices_lookup&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 17:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364343#M107527</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-02-11T17:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the inputlookup not returning any records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364344#M107528</link>
      <description>&lt;P&gt;When you ran &lt;CODE&gt;inputlookup prices&lt;/CODE&gt; did your search look exactly like that?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;inputlookup&lt;/CODE&gt; is a generating command, and thus must have a leading &lt;CODE&gt;|&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup prices_lookup&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;As to which names you can use for the lookup, your transform is named &lt;CODE&gt;prices_lookup&lt;/CODE&gt;, and your csv is named &lt;CODE&gt;prices.csv&lt;/CODE&gt;, so either of these would work:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| inputlookup prices_lookup&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;| inputlookup prices.csv&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 17:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364344#M107528</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-11T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the inputlookup not returning any records?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364345#M107529</link>
      <description>&lt;P&gt;Thank You for the full explanation. Adding the leading pipe did work. I'm getting data back. Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 20:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-the-inputlookup-not-returning-any-records/m-p/364345#M107529</guid>
      <dc:creator>putrtek</dc:creator>
      <dc:date>2018-02-11T20:43:37Z</dc:date>
    </item>
  </channel>
</rss>

