<?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 lookup fails with table is invalid in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103924#M26876</link>
    <description>&lt;P&gt;check here: &lt;A href="http://docs.splunk.com/Documentation/DBX/1.0.8/DeployDBX/dblookupspec"&gt;http://docs.splunk.com/Documentation/DBX/1.0.8/DeployDBX/dblookupspec&lt;/A&gt;&lt;BR /&gt;
Also, using a lookup instead of a inputlookup lets you find something?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2013 14:38:01 GMT</pubDate>
    <dc:creator>stefano_guidoba</dc:creator>
    <dc:date>2013-04-23T14:38:01Z</dc:date>
    <item>
      <title>db connect lookup fails with table is invalid</title>
      <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103923#M26875</link>
      <description>&lt;P&gt;To use a flat file lookup table is easy - simply create (say) a CSV file and use it with the search app syntax&lt;BR /&gt;
| inputlookup test.csv&lt;/P&gt;

&lt;P&gt;but if I go to&lt;BR /&gt;
Apps -&amp;gt; Lookups -&amp;gt; database lookups and create a new DB lookup...&lt;BR /&gt;
In this case a database table exists in an MS SQL database, local to the install of splunk (same machine) &lt;BR /&gt;
HIP7_SignameXlate&lt;/P&gt;

&lt;P&gt;I can get the GUI to query the DB (called ePO) to fill all the columns and save it. This suggests that the permissions etc are fine, and the DB connect app can read the table colums.&lt;/P&gt;

&lt;P&gt;Additionally, I can read data using a db tail, proving that the system returns data via the DB CONNECT app.&lt;/P&gt;

&lt;P&gt;However, the lookup table does not work. I get the following error:&lt;/P&gt;

&lt;P&gt;| INPUTLOOKUP dbo.HIP7_SigNameXlate&lt;BR /&gt;
The lookup table 'dbo.HIP7_SigNameXlate' is invalid.&lt;/P&gt;

&lt;P&gt;I know the spelling is correct as this is a cut and paste.&lt;/P&gt;

&lt;P&gt;Any ideas how to troubleshoot this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103923#M26875</guid>
      <dc:creator>jl271818</dc:creator>
      <dc:date>2020-09-28T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: db connect lookup fails with table is invalid</title>
      <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103924#M26876</link>
      <description>&lt;P&gt;check here: &lt;A href="http://docs.splunk.com/Documentation/DBX/1.0.8/DeployDBX/dblookupspec"&gt;http://docs.splunk.com/Documentation/DBX/1.0.8/DeployDBX/dblookupspec&lt;/A&gt;&lt;BR /&gt;
Also, using a lookup instead of a inputlookup lets you find something?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:38:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103924#M26876</guid>
      <dc:creator>stefano_guidoba</dc:creator>
      <dc:date>2013-04-23T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: db connect lookup fails with table is invalid</title>
      <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103925#M26877</link>
      <description>&lt;P&gt;No - the lookup does not work... which is why I tried something easy. i.e. inputlookup&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 03:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103925#M26877</guid>
      <dc:creator>jl271818</dc:creator>
      <dc:date>2013-04-24T03:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: db connect lookup fails with table is invalid</title>
      <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103926#M26878</link>
      <description>&lt;P&gt;Database lookups are actually scripted lookups in Splunk, so they cannot be used with the &lt;CODE&gt;inputlookup&lt;/CODE&gt; command, which only supports file based lookups. You can use the &lt;CODE&gt;dbquery&lt;/CODE&gt; command for a similar purpose, you just have to specify the full SQL query instead of the lookup name.&lt;/P&gt;

&lt;P&gt;In order to find out the problem with using the database lookup with the &lt;CODE&gt;lookup&lt;/CODE&gt; command, could you please provide some more information? (Lookup configuration, example searches you've tried, error messages, parts of dbx.log generated for the executed lookup)&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2013 03:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103926#M26878</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2013-05-05T03:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: db connect lookup fails with table is invalid</title>
      <link>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103927#M26879</link>
      <description>&lt;P&gt;Thanks. Once one realises that inputlookup won't return results, troubleshooting leads to results. | lookup from a db source works fine. Just have to be sure the data is there and the syntax is right.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 00:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/db-connect-lookup-fails-with-table-is-invalid/m-p/103927#M26879</guid>
      <dc:creator>JLeeatCBA</dc:creator>
      <dc:date>2013-05-21T00:03:31Z</dc:date>
    </item>
  </channel>
</rss>

