<?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 doesn't the Automatic lookup work? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384694#M112352</link>
    <description>&lt;P&gt;@DalJeanis when you say "If both of those work, then you have probably set up the lookup itself incorrectly."  did you mean you have set up the look correctly?  Both of my query work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup q-compliance_system_asset_mapping  (working)


| eval foo = "bar" | lookup q-compliance_system_asset_mapping dns AS dest OUTPUT system AS system  (working)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, it's not working on pivot.  do  you have any suggestion on how to troubleshoot? &lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 13:12:21 GMT</pubDate>
    <dc:creator>youngsuh</dc:creator>
    <dc:date>2020-03-18T13:12:21Z</dc:date>
    <item>
      <title>Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384683#M112341</link>
      <description>&lt;P&gt;I have a new lookup setup I want to query against it .presently its not working may I know what I have to do in order to get it setup for auto lookup.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 22:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384683#M112341</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-03T22:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384684#M112342</link>
      <description>&lt;P&gt;This covers what to do in oder to setup automatic lookups: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/DefineanautomaticlookupinSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/DefineanautomaticlookupinSplunkWeb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 00:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384684#M112342</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-08-04T00:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384685#M112343</link>
      <description>&lt;P&gt;I read that ,I created  four columns for my csv ..and did props and transforms.conf and I want the lookup to be automatically lookup for a field .&lt;/P&gt;

&lt;P&gt;but when I do the query in the search I don't get any statistics. why is it ?.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 01:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384685#M112343</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-04T01:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384686#M112344</link>
      <description>&lt;P&gt;1) Try manually checking the data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that should tell you if it's there.&lt;/P&gt;

&lt;P&gt;2) Try manually testing a lookup.  Assuming the name of the lookup field is &lt;CODE&gt;foo&lt;/CODE&gt;, and one record in the lookup the field &lt;CODE&gt;foo&lt;/CODE&gt; has a value of "bar", and there is another column named &lt;CODE&gt;baz&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval foo = "bar"
| lookup mylookup.csv foo OUTPUT baz 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If both of those work, then you have probably set up the lookup itself incorrectly. If one of them fails, then either the definition is wrong, the lookup name is wrong,  or the data is wrong. &lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 01:35:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384686#M112344</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-04T01:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384687#M112345</link>
      <description>&lt;P&gt;I've left my crystal ball in storage, sorry - you will need to post more details about what you're doing. For example, post the props.conf and transforms.conf entries you've made. Post what apps you've placed them in, what permissions you've given them, what app you're searching from, what user/role combo you're searching from, etc.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 09:50:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384687#M112345</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-08-04T09:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384688#M112346</link>
      <description>&lt;P&gt;props.&lt;BR /&gt;
[smptsm_accesslog]&lt;BR /&gt;
LOOKUP-pn_ip_env = pn_ip_env  ip AS ip OUTPUTNEW inbound AS pn_inbound pn AS pn_name variety AS pn_variety&lt;/P&gt;

&lt;P&gt;transforms-&lt;BR /&gt;
[pn_ip_env]&lt;/P&gt;

&lt;H2&gt;filename = pn_ip_env.csv&lt;/H2&gt;

&lt;P&gt;csv file has four columns- &lt;BR /&gt;
ip, inbound,pn,variety.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384688#M112346</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2020-09-29T20:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384689#M112347</link>
      <description>&lt;P&gt;does the sourcetype &lt;CODE&gt;smptsm_accesslog&lt;/CODE&gt; have matching &lt;CODE&gt;ip&lt;/CODE&gt; values?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 15:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384689#M112347</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-08-04T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384690#M112348</link>
      <description>&lt;P&gt;Assuming that your event data's field name is &lt;CODE&gt;foo&lt;/CODE&gt; and the matching lookup field name is &lt;CODE&gt;bar&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1: Use "|inputlookup YourLookupFileNameHere.csv" to see if your file is searchable from your user/app context.
2: Use "|inputlookup YourLookupFileNameHere.csv | where bar=*" to see if your file has the right field name.
3: Use "index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo" to see if your data is searchable from your user/app context.
4: Use "index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo | where foo=*" to see if your data has the right field name.
5: Use "index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo | where foo=* | lookup YourLookupFileNameHere.csv | where bar=*" to test that all this works together.
6: CLONE your existing automatic lookup definition and make sure that, if you are using a sourcetype-based stanza, that the sourcetype listed is *exactly* the "AndSourcetypToo" of your event data.  Upper/lower-case matters.  Why did I have you clone it?  Because that is the only practical way to see if you have accidental whitespace at the beginning or end of your sourcetype string, as can easily happen when doing cut/paste.  You can see it when you clone but not by looking at it on the screen any other practical way (Yes, you could use a "|rest" call but this is way quicker/easier).  I suspect that this is your problem.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Aug 2018 15:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384690#M112348</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-08-04T15:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384691#M112349</link>
      <description>&lt;P&gt;| inputlookup mylookup.csv.     (works)&lt;BR /&gt;
index=xyz | inputlookup mylookup.csv.  (   doesn't work. )&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 17:01:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384691#M112349</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-04T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384692#M112350</link>
      <description>&lt;P&gt;There are 2 &lt;CODE&gt;lookup-ish&lt;/CODE&gt; commands: &lt;CODE&gt;inputlookup&lt;/CODE&gt; and &lt;CODE&gt;lookup&lt;/CODE&gt;.  You are confusing the two.  Read my post again.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 18:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384692#M112350</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-08-04T18:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384693#M112351</link>
      <description>&lt;P&gt;how do I check auto lookup is working ?.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 00:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384693#M112351</guid>
      <dc:creator>rajneeshc1981</dc:creator>
      <dc:date>2018-08-06T00:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384694#M112352</link>
      <description>&lt;P&gt;@DalJeanis when you say "If both of those work, then you have probably set up the lookup itself incorrectly."  did you mean you have set up the look correctly?  Both of my query work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup q-compliance_system_asset_mapping  (working)


| eval foo = "bar" | lookup q-compliance_system_asset_mapping dns AS dest OUTPUT system AS system  (working)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, it's not working on pivot.  do  you have any suggestion on how to troubleshoot? &lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 13:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/384694#M112352</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2020-03-18T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the Automatic lookup work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/644673#M223248</link>
      <description>&lt;P&gt;There is actually one more possible issue - when using a remote Indexer. You need to enable replication of KVStore lookups by added to &amp;lt;app&amp;gt;/local/collections.conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&amp;lt;automatic_lookup_name&amp;gt;_kvstore]&lt;BR /&gt;replicate = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 19:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-doesn-t-the-Automatic-lookup-work/m-p/644673#M223248</guid>
      <dc:creator>gordo32</dc:creator>
      <dc:date>2023-05-25T19:37:16Z</dc:date>
    </item>
  </channel>
</rss>

