<?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 Getting error when i called a lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83170#M21152</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can someone hlep me why am getting this error.. and what i had to do to resolve&lt;BR /&gt;
&lt;STRONG&gt;"Assuming implicit lookup table with filename 'lookup_test.csv'"&lt;/STRONG&gt;&lt;BR /&gt;
Have given search as &lt;STRONG&gt;../lookup lookup_test.csv locno as locno OUTPUT locname as locname&lt;/STRONG&gt;, &lt;BR /&gt;
have lookup table structure as&lt;BR /&gt;
locno,locname,zipcode,city&lt;BR /&gt;
1,abc,1001,HYD&lt;BR /&gt;
1,def,1002,CHN&lt;BR /&gt;
am passing locno and want to fetch "locname" and show in report.&lt;BR /&gt;
Have added this lookup table from Manager-&amp;gt;lookup and provided lookup table location..&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 05:05:35 GMT</pubDate>
    <dc:creator>pramodkumar</dc:creator>
    <dc:date>2013-01-10T05:05:35Z</dc:date>
    <item>
      <title>Getting error when i called a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83170#M21152</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can someone hlep me why am getting this error.. and what i had to do to resolve&lt;BR /&gt;
&lt;STRONG&gt;"Assuming implicit lookup table with filename 'lookup_test.csv'"&lt;/STRONG&gt;&lt;BR /&gt;
Have given search as &lt;STRONG&gt;../lookup lookup_test.csv locno as locno OUTPUT locname as locname&lt;/STRONG&gt;, &lt;BR /&gt;
have lookup table structure as&lt;BR /&gt;
locno,locname,zipcode,city&lt;BR /&gt;
1,abc,1001,HYD&lt;BR /&gt;
1,def,1002,CHN&lt;BR /&gt;
am passing locno and want to fetch "locname" and show in report.&lt;BR /&gt;
Have added this lookup table from Manager-&amp;gt;lookup and provided lookup table location..&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 05:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83170#M21152</guid>
      <dc:creator>pramodkumar</dc:creator>
      <dc:date>2013-01-10T05:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when i called a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83171#M21153</link>
      <description>&lt;P&gt;Well its not really an error, its telling you that you don't have a definition for that lookup defined so its implicitly assuming you mean the one that its spotted in a lookup directory with the same name.&lt;/P&gt;

&lt;P&gt;You can define the lookup in your transforms.conf to remove this notice, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lookup_test]
filename = lookup_test.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you can just use &lt;CODE&gt;| lookup lookup_test ....&lt;/CODE&gt;&lt;BR /&gt;
Also, you don't need to do locno as locno, you only need AS if you need to rename the field to match the field names in the lookup, in this case its the same as your Splunk field so you don't need to include AS at all.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 08:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83171#M21153</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-01-10T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when i called a lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83172#M21154</link>
      <description>&lt;P&gt;as you suggested added as&lt;BR /&gt;
[lookup_test.csv]&lt;BR /&gt;
filename=lookup_test.csv in transforms.conf and now its working fine as i expected..&lt;BR /&gt;
thanks for your correct sol.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-error-when-i-called-a-lookup-file/m-p/83172#M21154</guid>
      <dc:creator>pramodkumar</dc:creator>
      <dc:date>2020-09-28T13:04:51Z</dc:date>
    </item>
  </channel>
</rss>

