<?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: DB-Connect 3 - dbxlookup with query does not work in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/571539#M75367</link>
    <description>&lt;P&gt;Still broken.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved my issue by running dbxquery output to a csv lookup, then using the normal lookups.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 17:56:28 GMT</pubDate>
    <dc:creator>drodman29</dc:creator>
    <dc:date>2021-10-19T17:56:28Z</dc:date>
    <item>
      <title>DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440097#M54045</link>
      <description>&lt;P&gt;Hi fellow Splunkers,&lt;BR /&gt;
I am trying to use DB-Connect to enrich search results by doing a dbxlookup against a table.&lt;/P&gt;

&lt;P&gt;This is my command: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval value_i_know_to_be_in_database="218024571471"
| dbxlookup query="SELECT * FROM my_table" connection="my_connection" DATABASE_FIELDNAME as value_i_know_to_be_in_database OUTPUT CONTENT as dbx_content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For all I know this is exactly in line with the documentation. To verify that i did not goof the query i also ran:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery query="SELECT * FROM my_table" connection="my_connection" 
| outputlookup dbxtest.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returns results and looks right.&lt;BR /&gt;
I added it to my previos search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval value_i_know_to_be_in_database="218024571471"
| dbxlookup query="SELECT * FROM my_table" connection="my_connection" DATABASE_FIELDNAME as value_i_know_to_be_in_database OUTPUT CONTENT as dbx_content
| lookup dbxtest.csv DATABASE_FIELDNAME as value_i_know_to_be_in_database OUTPUT CONTENT as lookup_content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I get the expected value in the lookup_content field and still nothing in the dbx_content field.&lt;/P&gt;

&lt;P&gt;I have been at this problem for multiple hours now and can't seem to get anywhere. I also tried to use a predefined lookup (which in actual production I can not use because my query needs to be dynamic). Did not work either.&lt;/P&gt;

&lt;P&gt;At this point I don`t know what else to try. I have read the docs forward and back, but I can not get anything. &lt;/P&gt;

&lt;P&gt;Help me answers.splunk. You are my only hope.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440097#M54045</guid>
      <dc:creator>Dohrendorf_DB</dc:creator>
      <dc:date>2020-09-30T01:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440098#M54046</link>
      <description>&lt;P&gt;@Dohrendorf_DB &lt;/P&gt;

&lt;P&gt;Did you get any help or were able to find any solution?&lt;BR /&gt;
I am also facing the same issue&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 11:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440098#M54046</guid>
      <dc:creator>manunairadavakk</dc:creator>
      <dc:date>2019-09-03T11:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440099#M54047</link>
      <description>&lt;P&gt;Sadly no. There was no response to this question in any shape or  form so far.&lt;/P&gt;

&lt;P&gt;For now I solved my problem by running a subsearch with a join, which seems very wrong, but i couldn't solve it any other way.&lt;/P&gt;

&lt;P&gt;Please post in here if you find anything.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 11:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/440099#M54047</guid>
      <dc:creator>Dohrendorf_DB</dc:creator>
      <dc:date>2019-09-03T11:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/571539#M75367</link>
      <description>&lt;P&gt;Still broken.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solved my issue by running dbxquery output to a csv lookup, then using the normal lookups.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 17:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/571539#M75367</guid>
      <dc:creator>drodman29</dc:creator>
      <dc:date>2021-10-19T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581081#M75883</link>
      <description>&lt;P&gt;It seems to be the only one solution for now. I have to use your solution because the bug is still there until now.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 12:26:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581081#M75883</guid>
      <dc:creator>louismai</dc:creator>
      <dc:date>2022-01-14T12:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581103#M75884</link>
      <description>&lt;P&gt;When you run the query from UI donyou get expected results??&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 14:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581103#M75884</guid>
      <dc:creator>SinghK</dc:creator>
      <dc:date>2022-01-14T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: DB-Connect 3 - dbxlookup with query does not work</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581233#M75906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228600"&gt;@SinghK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I go to DataLab &amp;gt; Lookups &amp;gt; New Lookups,&lt;/P&gt;&lt;P&gt;Step 1:&amp;nbsp; Set Reference Search with time range : results as expected&lt;/P&gt;&lt;P&gt;Step 2: Set Lookup SQL: results as expected&lt;/P&gt;&lt;P&gt;Step 3: Field Mapping:&lt;/P&gt;&lt;P&gt;- Search Fields Match Table Columns (case sensitive)&lt;/P&gt;&lt;P&gt;- Lookup Fields: Table columns chosen&lt;/P&gt;&lt;P&gt;Preview Results:&lt;/P&gt;&lt;PRE&gt;(...) | dbxlookup connection="Pro_DB" query="SELECT TOP(1000) [SID] ,
        [LogTime] ,
        [DocID]
FROM [Storage].[dbo].[DocStates]
ORDER BY [LogTime] DESC" "SID" AS "SID" OUTPUT "LogTime" AS "Log_Time", "DocID" AS "Doc_ID"&lt;/PRE&gt;&lt;P&gt;Then I clicked on "Open In Search", only the SPL query returns result, but the dbxlookup fields are all blank.&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jan 2022 07:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-3-dbxlookup-with-query-does-not-work/m-p/581233#M75906</guid>
      <dc:creator>louismai</dc:creator>
      <dc:date>2022-01-16T07:54:04Z</dc:date>
    </item>
  </channel>
</rss>

