<?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 Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181802#M186897</link>
    <description>&lt;P&gt;In the DB Connect app, when I try to add a Database Input, instead of selecting a Table Name I would like to Specify the SQL Query.&lt;BR /&gt;
I want to run a very simple join query to use as the input. Is this possible? If so, what am I doing wrong:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select Documents.tmpname, DocumentStatistics.*
From DocumentStatistics
INNER JOIN Documents
On DocumentStatistics.image_id=Documents.image_id;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting the following error when I try to do this (it works fine if I just select the table):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-13-2015 11:53:46.206 +1100 ERROR AdminManagerExternal - Received malformed XML from external handler:\nFailed to validate: com.splunk.config.SplunkConfigurationException: Error validating dbmonTail for monitor=dbmon-tail://Database/New Data: [New Data] Invalid query " select Documents.tmpname, DocumentStatistics.*\r\r\n From DocumentStatistics\r\r\n INNER JOIN Documents\r\r\n On DocumentStatistics.image_id=Documents.image_id;" without proper {{ ... $rising_column$ &amp;gt; ?}} pattern! with query = ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 12 Jan 2015 22:18:37 GMT</pubDate>
    <dc:creator>KindaWorking</dc:creator>
    <dc:date>2015-01-12T22:18:37Z</dc:date>
    <item>
      <title>Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181802#M186897</link>
      <description>&lt;P&gt;In the DB Connect app, when I try to add a Database Input, instead of selecting a Table Name I would like to Specify the SQL Query.&lt;BR /&gt;
I want to run a very simple join query to use as the input. Is this possible? If so, what am I doing wrong:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;select Documents.tmpname, DocumentStatistics.*
From DocumentStatistics
INNER JOIN Documents
On DocumentStatistics.image_id=Documents.image_id;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting the following error when I try to do this (it works fine if I just select the table):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-13-2015 11:53:46.206 +1100 ERROR AdminManagerExternal - Received malformed XML from external handler:\nFailed to validate: com.splunk.config.SplunkConfigurationException: Error validating dbmonTail for monitor=dbmon-tail://Database/New Data: [New Data] Invalid query " select Documents.tmpname, DocumentStatistics.*\r\r\n From DocumentStatistics\r\r\n INNER JOIN Documents\r\r\n On DocumentStatistics.image_id=Documents.image_id;" without proper {{ ... $rising_column$ &amp;gt; ?}} pattern! with query = ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jan 2015 22:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181802#M186897</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-01-12T22:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181803#M186898</link>
      <description>&lt;P&gt;You should be able to do that, the only thing might preventing you is a duplicated column name. Can you see any errors inside dbx.log file?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2015 23:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181803#M186898</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2015-01-12T23:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181804#M186899</link>
      <description>&lt;P&gt;Thanks musskopf, I have added the error logs to the question&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2015 01:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181804#M186899</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-01-13T01:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181805#M186900</link>
      <description>&lt;P&gt;The answer is that I forgot to append the following to my query:&lt;BR /&gt;
    {{WHERE $rising_column$ &amp;gt; ?}}&lt;/P&gt;

&lt;P&gt;Now all working. Thanks Musskopf for setting me in the right direction.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2015 02:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181805#M186900</guid>
      <dc:creator>KindaWorking</dc:creator>
      <dc:date>2015-01-13T02:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect: Is it possible to specify a SQL Query by running an inner join query to use as the database input?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181806#M186901</link>
      <description>&lt;P&gt;Thanks, have you had a problem with the date in your table? because i have a problen with that, the format is diferente when i import the data of my data bases within splunk.&lt;BR /&gt;
 regards.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-Is-it-possible-to-specify-a-SQL-Query-by/m-p/181806#M186901</guid>
      <dc:creator>enriquemr</dc:creator>
      <dc:date>2015-07-09T21:37:17Z</dc:date>
    </item>
  </channel>
</rss>

