All Apps and Add-ons

Splunk to take in data from MySQL

jaterlwj
Explorer

Is there any possible way for Splunk to - let's say, read/indexes data directly from a MySQL database table?

I have tried Splunk MySQL Connector but what it seems to do is basically creating a lookup for existing fields. Assuming that I have no existing fields and everything is on the database. What can I do?

0 Karma
1 Solution

losciamano
Engager

If you have MySQL connector installed, the following command can be used to directly query MySQL server:

| mysqlquery username="your_username" password="your_password" host="server_ip_address" port="server_port" schema="your_db_name" query="your_sql_query"

This operation is possible because the developer of MySQL connector wrapper communication with MySQL server with this command.
Hope this helps

View solution in original post

losciamano
Engager

If you have MySQL connector installed, the following command can be used to directly query MySQL server:

| mysqlquery username="your_username" password="your_password" host="server_ip_address" port="server_port" schema="your_db_name" query="your_sql_query"

This operation is possible because the developer of MySQL connector wrapper communication with MySQL server with this command.
Hope this helps

jaterlwj
Explorer

Thanks for your reply! This helps me. 🙂

Takajian
Builder

Splunk can index any data with text format, not binary format. You will need script to collect data of relational database like MySQL. Following app can be helpful to collect data from MySQL, but you will need to customize it according to your requirement.

http://splunk-base.splunk.com/apps/41769/splunk-mysql-monitor

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...