<?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 How to join log file data from Splunk and data from a table in MySQL. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50574#M179560</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to join a log file(sourceType) which is present in Splunk with data from a table in MySQL through Splunk-MySQL Connector.&lt;BR /&gt;
I found some few examples online on the type of queries, like these ones:&lt;BR /&gt;
 1.  | mysqlquery spec=MyDB query="show tables;"&lt;BR /&gt;
 2.  | mysqlquery spec=MyDb query="SELECT * FROM MyTable;"&lt;BR /&gt;
 3.  sourcetype=access_* [ mysqlquery spec=MyDb query="SELECT customer_id WHERE     purchased_item=rocking_chair" ]&lt;/P&gt;

&lt;P&gt;But i am getting a error while using all these. Its says "(1049, u"Unknown database 'splunk'")"&lt;/P&gt;

&lt;P&gt;My log file is called "Radius log" and table in MySQL is called "Cust_det" in db called "MyDB".&lt;BR /&gt;
The log file and table have a common field called "IP_add".&lt;/P&gt;

&lt;P&gt;Could anyone help me out with building the query.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:22:32 GMT</pubDate>
    <dc:creator>alenseb</dc:creator>
    <dc:date>2020-09-28T12:22:32Z</dc:date>
    <item>
      <title>How to join log file data from Splunk and data from a table in MySQL.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50574#M179560</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to join a log file(sourceType) which is present in Splunk with data from a table in MySQL through Splunk-MySQL Connector.&lt;BR /&gt;
I found some few examples online on the type of queries, like these ones:&lt;BR /&gt;
 1.  | mysqlquery spec=MyDB query="show tables;"&lt;BR /&gt;
 2.  | mysqlquery spec=MyDb query="SELECT * FROM MyTable;"&lt;BR /&gt;
 3.  sourcetype=access_* [ mysqlquery spec=MyDb query="SELECT customer_id WHERE     purchased_item=rocking_chair" ]&lt;/P&gt;

&lt;P&gt;But i am getting a error while using all these. Its says "(1049, u"Unknown database 'splunk'")"&lt;/P&gt;

&lt;P&gt;My log file is called "Radius log" and table in MySQL is called "Cust_det" in db called "MyDB".&lt;BR /&gt;
The log file and table have a common field called "IP_add".&lt;/P&gt;

&lt;P&gt;Could anyone help me out with building the query.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50574#M179560</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2020-09-28T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to join log file data from Splunk and data from a table in MySQL.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50575#M179561</link>
      <description>&lt;P&gt;Have you run through the setup in the MySQL connector app? It has a browser you can use to verify your connection details&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 14:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50575#M179561</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to join log file data from Splunk and data from a table in MySQL.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50576#M179562</link>
      <description>&lt;P&gt;Sorry for the stupid question.&lt;/P&gt;

&lt;P&gt;I had to change the Schema name in the MySQL Connector. Its default value was Splunk, hence the error.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50576#M179562</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-04T15:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to join log file data from Splunk and data from a table in MySQL.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50577#M179563</link>
      <description>&lt;P&gt;Sorry for the stupid question.&lt;/P&gt;

&lt;P&gt;I had to change the Schema name in the MySQL Connector. Its default value was Splunk, hence the error.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-log-file-data-from-Splunk-and-data-from-a-table-in/m-p/50577#M179563</guid>
      <dc:creator>alenseb</dc:creator>
      <dc:date>2012-09-04T15:05:04Z</dc:date>
    </item>
  </channel>
</rss>

