<?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 search using ONLY lookup in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375132#M45504</link>
    <description>&lt;P&gt;That did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I type (replacing it with my lookup name)&lt;BR /&gt;
&lt;STRONG&gt;"|inputlookup MyView"&lt;/STRONG&gt; &lt;BR /&gt;
into the test box called "Search" and this return 0 results. The "Search" text box is under Searches,reports, and alerts-&amp;gt;new  The result should be over 2 million.&lt;BR /&gt;
As stated earlier, there is no index in the select statement so no prefix.&lt;BR /&gt;
My database view is V_MyView and my lookup name for it is MvView.  Do I need to do V_MyView instead?&lt;BR /&gt;
Can this be done without the index?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:07:19 GMT</pubDate>
    <dc:creator>alexsmirnoff</dc:creator>
    <dc:date>2020-09-29T18:07:19Z</dc:date>
    <item>
      <title>How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375130#M45502</link>
      <description>&lt;P&gt;How do you search only using a lookup so that I can return a report with the contence of the lookup...&lt;BR /&gt;&lt;BR /&gt;
I do not want any index in the search.&lt;BR /&gt;
I have created a database lookup using a view (Lets call it MyView). Lets call my Lookup which points the the view MyLookup&lt;BR /&gt;
In the search result, I want to have&lt;BR /&gt;
SELECT * FROM MyView&lt;BR /&gt;
This does not require any index join or anything else.  Can this be done and how?&lt;BR /&gt;
I tried souce=MyLookup and I tried index=MyLookup&lt;BR /&gt;
Nothing returns result.&lt;BR /&gt;
Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 06:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375130#M45502</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2018-02-14T06:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375131#M45503</link>
      <description>&lt;P&gt;If I understood correctly , you want to view contents in lookup then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup MyView
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and if its csv lookup then try :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup MyView.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375131#M45503</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-14T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375132#M45504</link>
      <description>&lt;P&gt;That did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I type (replacing it with my lookup name)&lt;BR /&gt;
&lt;STRONG&gt;"|inputlookup MyView"&lt;/STRONG&gt; &lt;BR /&gt;
into the test box called "Search" and this return 0 results. The "Search" text box is under Searches,reports, and alerts-&amp;gt;new  The result should be over 2 million.&lt;BR /&gt;
As stated earlier, there is no index in the select statement so no prefix.&lt;BR /&gt;
My database view is V_MyView and my lookup name for it is MvView.  Do I need to do V_MyView instead?&lt;BR /&gt;
Can this be done without the index?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375132#M45504</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2020-09-29T18:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375133#M45505</link>
      <description>&lt;P&gt;If you got no results from:&lt;/P&gt;

&lt;P&gt;|inputlookup MyView&lt;/P&gt;

&lt;P&gt;or from:&lt;/P&gt;

&lt;P&gt;|inputlookup MyView.csv&lt;/P&gt;

&lt;P&gt;Then your lookup file isn't loaded correctly. See if you can find it in:&lt;/P&gt;

&lt;P&gt;Settings &amp;gt; Lookups &amp;gt; Lookup Table Files&lt;/P&gt;

&lt;P&gt;If you do - also notice what "app" the lookup is in. This is important. If you are in the wrong app when you try the lookup, it will fail.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 00:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375133#M45505</guid>
      <dc:creator>gwalford</dc:creator>
      <dc:date>2018-02-15T00:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375134#M45506</link>
      <description>&lt;P&gt;This a Database Lookup.  Not a csv.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 00:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375134#M45506</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2018-02-15T00:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375135#M45507</link>
      <description>&lt;P&gt;The below works, but is not using lookup.  I need it to run as a lookup&lt;/P&gt;

&lt;P&gt;| dbquery MyDatabase "SELECT DISTINCT TOP 10 * FROM V_MyView"&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 00:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375135#M45507</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2018-02-15T00:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375136#M45508</link>
      <description>&lt;P&gt;which app you are using is it &lt;CODE&gt;DB Connect&lt;/CODE&gt; or &lt;CODE&gt;MySQL Connector&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 05:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375136#M45508</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-15T05:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375137#M45509</link>
      <description>&lt;P&gt;DB Connect&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 05:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375137#M45509</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2018-02-15T05:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375138#M45510</link>
      <description>&lt;P&gt;have you created lookup from &lt;CODE&gt;Data Lab &amp;gt; Lookups tab and click New Lookup&lt;/CODE&gt;?&lt;BR /&gt;
for creation of lookup refer: &lt;A href="http://docs.splunk.com/Documentation/DBX/3.1.2/DeployDBX/Createandmanagedatabaselookups#Create_a_database_lookup"&gt;http://docs.splunk.com/Documentation/DBX/3.1.2/DeployDBX/Createandmanagedatabaselookups#Create_a_database_lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 05:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375138#M45510</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-15T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375139#M45511</link>
      <description>&lt;P&gt;Already read this in the past..  Couldnt get it to work.&lt;/P&gt;

&lt;P&gt;sourcetype=GTS_Sessions | dbxlookup lookup="GTS_Product_Lookup" | stats sum(product_price) as "spend" by uid&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What is "GTS_Session"  how is it defined?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375139#M45511</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2020-09-29T18:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375140#M45512</link>
      <description>&lt;P&gt;It will enrich your indexed events (i.e. sourcetype=GTS_Sessions) with the information you have stored in external databases ( i.e. dbxlookup lookup="GTS_Product_Lookup")&lt;BR /&gt;
but in your case what you are trying ? are you trying to store &lt;CODE&gt;dbquery select * from viewname&lt;/CODE&gt; result in lookup ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375140#M45512</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2020-09-29T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375141#M45513</link>
      <description>&lt;P&gt;In short I am trying to do the exact same thing as this query&lt;BR /&gt;
| dbquery MyDatabase "SELECT DISTINCT TOP 10 * FROM V_MyView"&lt;/P&gt;

&lt;P&gt;This works 100%, but I want a lookup, something like&lt;/P&gt;

&lt;P&gt;| dbxlookup lookup="MyLookup"&lt;/P&gt;

&lt;P&gt;But this line works 0% &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 06:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375141#M45513</guid>
      <dc:creator>alexsmirnoff</dc:creator>
      <dc:date>2018-02-15T06:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search using ONLY lookup</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375142#M45514</link>
      <description>&lt;P&gt;So if I understood it correctly, you are scheduling this saved search to run at specific interval and store its value in lookup so that lookup used in your query instead of writing select query.&lt;BR /&gt;
If so then you can create csv lookup try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery MyDatabase "SELECT DISTINCT TOP 10 * FROM V_MyView"|outputlookup MyLookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so now your values are stored in MyLookup.csv and now you can use directly lookup like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup MyLookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 06:27:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-search-using-ONLY-lookup/m-p/375142#M45514</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-15T06:27:52Z</dc:date>
    </item>
  </channel>
</rss>

