<?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: Automatic Lookup not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56237#M13756</link>
    <description>&lt;P&gt;Did you get it?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2012 14:35:44 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2012-09-11T14:35:44Z</dc:date>
    <item>
      <title>Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56228#M13747</link>
      <description>&lt;P&gt;I've followed &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups&lt;/A&gt; and looked at plenty of questions about the same topic on here and I still can't figure out what I'm doing wrong with my automatic lookup.  I also watched a video on this but it didn't really show how the lookup was created.  &lt;/P&gt;

&lt;P&gt;Here's my csv file I want to use for a file based lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;gnovak@booberry:cat WAT_Lookups.csv

"filename,description"
"Invoice.pdf,Billing Invoice"
"Statement.pdf,Billing Statement"
"text.txt,Billing text"
"*-*.pdf,Scorecard"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;For Lookup Table Files I selected
this csv and gave it the same name
for Destination filename.&lt;/LI&gt;
&lt;LI&gt;For Lookup Definitions, destination app is "search", name is "WAT_Lookups.csv", type is "file based", and the lookup file is "WAT_Lookups.csv".&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;For Automatic Lookups, I have the following&lt;/P&gt;

&lt;P&gt;Lookup Table:  WAT_Lookups&lt;BR /&gt;
Lookup input fields - filename = filename&lt;BR /&gt;
Lookup Output fields - description = description&lt;BR /&gt;
Apply to :  sourcetype named EPPWEB&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I have checked my props.conf and transforms.conf files after configuring all of this and there are entires in there.  I also made sure the permissions on these were all Everyone can Read, Admin can write for only the search app which is where this is located.&lt;/P&gt;

&lt;P&gt;When I do a search for sourcetype=EPPWEB, I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log1.blahblahblah.info] Error 'Could not find all of the specified lookup fields in the lookup table.' for conf 'source::EPPWEB' and lookup table 'WAT_Lookups'
    [log2.blahblahblah.info] Error 'Could not find all of the specified lookup fields in the lookup table.' for conf 'source::EPPWEB' and lookup table 'WAT_Lookups'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I just can't seem to get it to work.  &lt;/P&gt;

&lt;P&gt;Basically the end result is, for example, a filename called Invoice.pdf to be otherwise known as "Billing Invoice".&lt;/P&gt;

&lt;P&gt;NOTE:  I already have "filename" as a field extracted through props.conf.&lt;BR /&gt;&lt;BR /&gt;
So under the field filename you have some files listed like text.text, Invoice.pdf, etc.  I'm not sure if this in doing anything w/ the lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56228#M13747</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56229#M13748</link>
      <description>&lt;P&gt;Can you try it without the double quotes in your look up file.  I'm guessing that is causing issues.&lt;/P&gt;

&lt;P&gt;filename,description&lt;BR /&gt;
Invoice.pdf,Billing Invoice&lt;BR /&gt;
Statement.pdf,Billing Statement&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56229#M13748</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-10T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56230#M13749</link>
      <description>&lt;P&gt;The error is gone now but there still isn't a description field.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56230#M13749</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-09-10T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56231#M13750</link>
      <description>&lt;P&gt;And not sure why splunk put the "" in the file.  The original one they were not in there.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:12:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56231#M13750</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-09-10T21:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56232#M13751</link>
      <description>&lt;P&gt;I assume 'filename' is a field that exists for your sourcetype.  Does the description field appear if you do this search? Assuming that WAT_Lookups is the name of the look up in Manager » Lookups » Lookup definitions.&lt;/P&gt;

&lt;P&gt;sourcetype='EPPWEB' | lookup WAT_Lookups filename&lt;/P&gt;

&lt;P&gt;If this works then there is something wrong with your automatic look up.  Just seems to be a configuration issue here somewhere.  Splunk shouldn't do anything to the file so it must have gotten put in there by your editor.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:17:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56232#M13751</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-10T21:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56233#M13752</link>
      <description>&lt;P&gt;It searches and brings back results but there is no "description" field with the names i specified.  And the lookup definition was called WAT_Lookups.  I'm not sure if "where" my field extraction is located is the problem?  My field extraction for "filename" is located in /opt/splunk/etc/system/local.  This lookup is in /opt/splunk/etc/apps/search/local.  &lt;/P&gt;

&lt;P&gt;Here's the extraction in props.conf for "filename"&lt;/P&gt;

&lt;P&gt;[EPPWEB]&lt;BR /&gt;
EXTRACT-extract_my_fields = USER (?P&lt;USER&gt;[\d+-\w\w]) downloading .*\/(?&lt;FILENAME&gt;.+?)$&lt;BR /&gt;
SHOULD_LINEMERGE = FALSE&lt;/FILENAME&gt;&lt;/USER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56233#M13752</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56234#M13753</link>
      <description>&lt;P&gt;I even tried this search and it didn't work:&lt;BR /&gt;
sourcetype=EPPWEB | lookup WAT_Lookups filename AS filename OUTPUTNEW description AS description&lt;/P&gt;

&lt;P&gt;It should look at a name in the "filename" field and match it up wtih the name in the description field (based on what's in the csv file).  I don't see a description field at all.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56234#M13753</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-09-10T21:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56235#M13754</link>
      <description>&lt;P&gt;If you can see filename show up then it's not a problem.  I would suggest recreating the steps to create the lookup and delete the old ones.  Do it as a manual and try it from the search and then make it automatic.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 21:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56235#M13754</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-10T21:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56236#M13755</link>
      <description>&lt;P&gt;I actually did try recreating the automatic lookup and i got the same result.  I could try manual i guess&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 22:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56236#M13755</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-09-10T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56237#M13756</link>
      <description>&lt;P&gt;Did you get it?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 14:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56237#M13756</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-11T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56238#M13757</link>
      <description>&lt;P&gt;The solution to this problem was that the original search did not have enough information in it to do the lookup.  The search that allowed the "description" field to show up was:&lt;/P&gt;

&lt;P&gt;sourcetype=EPPWEB source="/opt/log/*/web_server/info.log" WAT | lookup WAT_Lookups filename AS filename OUTPUTNEW description AS description&lt;/P&gt;

&lt;P&gt;It just needed more information I guess.  The automatic lookup works now.  Thanks for your input and assistance though!  I learned a lot.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56238#M13757</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2020-09-28T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Lookup not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56239#M13758</link>
      <description>&lt;P&gt;yeah...see below.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Automatic-Lookup-not-working/m-p/56239#M13758</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-09-11T18:42:43Z</dc:date>
    </item>
  </channel>
</rss>

