<?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 Is it possible to use SSH to connect Splunk to a MySQL database? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277606#M53238</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to connect Splunk to a MySQL database, however MYSQL is only listening on localhost.  To normally connect, I use an SSH connection first then open the connection to MySQL.  Is this possible with Splunk?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2016 17:08:01 GMT</pubDate>
    <dc:creator>rfagnoni</dc:creator>
    <dc:date>2016-09-14T17:08:01Z</dc:date>
    <item>
      <title>Is it possible to use SSH to connect Splunk to a MySQL database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277606#M53238</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to connect Splunk to a MySQL database, however MYSQL is only listening on localhost.  To normally connect, I use an SSH connection first then open the connection to MySQL.  Is this possible with Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 17:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277606#M53238</guid>
      <dc:creator>rfagnoni</dc:creator>
      <dc:date>2016-09-14T17:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use SSH to connect Splunk to a MySQL database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277607#M53239</link>
      <description>&lt;P&gt;Are you using a MYSQL Connector or DBConnect? If yes, it requires exporting the database certificate and importing it into the trust store of the JVM powering the JavaBridge.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 01:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277607#M53239</guid>
      <dc:creator>jagadeeshm</dc:creator>
      <dc:date>2016-09-15T01:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use SSH to connect Splunk to a MySQL database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277608#M53240</link>
      <description>&lt;P&gt;Yes and no.  Or no and yes...&lt;/P&gt;

&lt;P&gt;Splunk (specifically the DB Connect app) cannot natively open an SSH connection and use that to transport the database connection.&lt;/P&gt;

&lt;P&gt;BUT&lt;/P&gt;

&lt;P&gt;SSH supports tunneling.  If there is "something" that is continuously holding open an SSH connection with a defined tunnel, then it's possible you could get Splunk to use the tunnel to reach MySQL on the other system.  Something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;while true; do ssh -L 13306:127.0.0.1:3306 user@mysqlserver 'while true; sleep 30; done'; done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would in theory keep the SSH open indefinitely, enabling you to configure something on your Splunk system to use port 13306 to talk to port 3306 on the other side of the tunnel.  &lt;/P&gt;

&lt;P&gt;This type of thing is brittle by nature but it can be done.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 02:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-SSH-to-connect-Splunk-to-a-MySQL-database/m-p/277608#M53240</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2016-09-15T02:55:34Z</dc:date>
    </item>
  </channel>
</rss>

