<?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: Not able to find REST endpoint for MySQL App to search the database in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-find-REST-endpoint-for-MySQL-App-to-search-the/m-p/83683#M17406</link>
    <description>&lt;P&gt;You can use the same REST endpoint that you use for regular Splunk searches - just change the search string to use mysqlquery instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Regular search:
| search foobar | stats count 

dbquery search:
| mysqlquery spec=mydb query="SELECT * FROM foobar LIMIT 10"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's how you can use the REST endpoint to create searches &lt;BR /&gt;
[&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches&lt;/A&gt;]&lt;/P&gt;</description>
    <pubDate>Mon, 08 Oct 2012 20:55:25 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2012-10-08T20:55:25Z</dc:date>
    <item>
      <title>Not able to find REST endpoint for MySQL App to search the database</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-find-REST-endpoint-for-MySQL-App-to-search-the/m-p/83682#M17405</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have been using REST for basic searching and getting results from saved searches from splunk via splunk SDK python. Recently I installed MySQL Connector App on my splunk instance. I am wondering if I could do a dbquery search on MySQL App via REST.&lt;/P&gt;

&lt;P&gt;I haven't been able to find REST Endpoint to search on MySQL App. I was wondering if someone has already done it or if someone could point me to right direction.&lt;/P&gt;

&lt;P&gt;Any help is much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Vikas &lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-find-REST-endpoint-for-MySQL-App-to-search-the/m-p/83682#M17405</guid>
      <dc:creator>vickypandya</dc:creator>
      <dc:date>2012-10-08T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to find REST endpoint for MySQL App to search the database</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-find-REST-endpoint-for-MySQL-App-to-search-the/m-p/83683#M17406</link>
      <description>&lt;P&gt;You can use the same REST endpoint that you use for regular Splunk searches - just change the search string to use mysqlquery instead&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Regular search:
| search foobar | stats count 

dbquery search:
| mysqlquery spec=mydb query="SELECT * FROM foobar LIMIT 10"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's how you can use the REST endpoint to create searches &lt;BR /&gt;
[&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/RESTAPI/RESTsearches&lt;/A&gt;]&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2012 20:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-able-to-find-REST-endpoint-for-MySQL-App-to-search-the/m-p/83683#M17406</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-10-08T20:55:25Z</dc:date>
    </item>
  </channel>
</rss>

