Getting Data In

Is it possible to use Splunk forwarder to send data from mysql ?

dragosluca
Engager

Is it possible to use Splunk forwarder to send data from MYSQL ?

Tags (3)
0 Karma
1 Solution

sowings
Splunk Employee
Splunk Employee

If you can write a script to get data from mysql, you can get it into Splunk.

The usual way might be to use a shell script calling the mysql interpreter with your desired SELECT statement, returning the rows to STDOUT. Splunk would then index the data being output by the script. Inspecting the database directly from a Splunk script might be just a bit trickier, as I don't know whether a database connector for mysql is included in the Splunk Python library.

View solution in original post

0 Karma

dmaislin_splunk
Splunk Employee
Splunk Employee

This is my favorite app: http://splunk-base.splunk.com/apps/50803/dbx-sql-database-extension. No forwarder required and simple to use. You can do lookups, browse databases, update Splunk indexes from a database, and update the database from Splunk. You should definitely check it out!

gkanapathy
Splunk Employee
Splunk Employee

As of right now (Oct 3 2012) this app is not downloadable. however, a less rich app (that requires a bit more work) is http://splunk-base.splunk.com/apps/27105/jdbc-scripted-input

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

It is possible to use a Splunk Forwarder to send data from mysql, but it involves a scripted input. Input configurations are found here: http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf. I would call a perl or python script and use that to pull in the data.
Example: http://www.tutorialspoint.com/python/python_database_access.htm

0 Karma

sowings
Splunk Employee
Splunk Employee

If you can write a script to get data from mysql, you can get it into Splunk.

The usual way might be to use a shell script calling the mysql interpreter with your desired SELECT statement, returning the rows to STDOUT. Splunk would then index the data being output by the script. Inspecting the database directly from a Splunk script might be just a bit trickier, as I don't know whether a database connector for mysql is included in the Splunk Python library.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...