<?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 2: What is the proper syntax for dbxquery? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129553#M10528</link>
    <description>&lt;P&gt;With DBConnect v2, it looks like dbquery was replaced with dbxquery, however, the syntax doesn't  appear to be documented. Looking at the python command code, I see it needs a connection and query argument, however, when these are supplied, the search just runs. This same SQL query works fine from the SQL query page and with DBConnect v1.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=CONNECTION query=QUERY   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried no quotes, single quotes, and double quotes around the SQL query&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2015 14:50:23 GMT</pubDate>
    <dc:creator>kbecker</dc:creator>
    <dc:date>2015-04-07T14:50:23Z</dc:date>
    <item>
      <title>Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129553#M10528</link>
      <description>&lt;P&gt;With DBConnect v2, it looks like dbquery was replaced with dbxquery, however, the syntax doesn't  appear to be documented. Looking at the python command code, I see it needs a connection and query argument, however, when these are supplied, the search just runs. This same SQL query works fine from the SQL query page and with DBConnect v1.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=CONNECTION query=QUERY   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried no quotes, single quotes, and double quotes around the SQL query&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 14:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129553#M10528</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2015-04-07T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129554#M10529</link>
      <description>&lt;P&gt;I have found dbxquery does work. The downside is you have to replace spaces and special characters with the hex equivalent (See below)...   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbxquery connection=XYZ query="SELECT%20Location,%20NodeID,%20Caption,%20Description,%20IP_Address%20FROM%20MyTable%20WHERE%20(Caption%20LIKE%20%27%-P0%%27)%20OR%20(Caption%20LIKE%20%27%A0%%27)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2015 02:44:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129554#M10529</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2015-04-16T02:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129555#M10530</link>
      <description>&lt;P&gt;this is going to be corrected in a future release. In the meantime, you can use urlencode tools or sites to get it right (note that it's got to replace space with %20, not -).&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2015 15:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129555#M10530</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2015-04-18T15:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129556#M10531</link>
      <description>&lt;P&gt;I confirm this works, major bummer on this since Splunk has no easy urlencode function, only urldecode. &lt;BR /&gt;
I plan to use dbxquery for a long dynamic SQL query but I'll have to wait for this to be fixed because I have PullDown modules sending variables and encoding the query partially in URL Encoded format wont suffice.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 21:29:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129556#M10531</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2015-04-29T21:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129557#M10532</link>
      <description>&lt;P&gt;you%20can%27t%20read%20url%20encoded%20strings%3F!%3F&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 22:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129557#M10532</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2015-05-12T22:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129558#M10533</link>
      <description>&lt;P&gt;Any ideas when this will be corrected?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129558#M10533</guid>
      <dc:creator>peter7431</dc:creator>
      <dc:date>2015-07-08T12:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129559#M10534</link>
      <description>&lt;P&gt;"dbxquery" command is working in DBconnect ver-2 not in DB-connect =&amp;lt; ver-1.1.7 that I have tested.&lt;/P&gt;

&lt;P&gt;The command syntax is bit awkward any space need to reconverted hex-code:&lt;/P&gt;

&lt;P&gt;Working command:&lt;BR /&gt;
 | dbxquery query="SELECT%20*%20FROM%20customers" connection="Northwind_products"&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 00:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129559#M10534</guid>
      <dc:creator>ashish_ray</dc:creator>
      <dc:date>2015-07-29T00:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129560#M10535</link>
      <description>&lt;P&gt;@jcoates_splunk any news on when DB Connect v2 queries won't require to be URL encoded any longer?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 20:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129560#M10535</guid>
      <dc:creator>rutgerthomschut</dc:creator>
      <dc:date>2015-09-10T20:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 2: What is the proper syntax for dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129561#M10536</link>
      <description>&lt;P&gt;It has been corrected.  Spaces work fine.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-2-What-is-the-proper-syntax-for-dbxquery/m-p/129561#M10536</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2016-01-13T21:13:05Z</dc:date>
    </item>
  </channel>
</rss>

