Reporting

Send search results to a MySQL database periodically

MaximeM
Explorer

Hi there.

I would like to send some data from a periodic search to a MySQL database on a remote server.
What are my options ?

Tags (3)
0 Karma

jharty_splunk
Splunk Employee
Splunk Employee

Try using the MySQL connector
http://splunk-base.splunk.com/apps/36664/splunk-mysql-connector

Alternatively, you could output the results of the search to CSV ("| [search] | outputcsv outputfile.csv") and use Mysql Load data infile.

MaximeM
Explorer

Thanks for your answer.
I already tried to use MySQL Connector but I can't figure how to get an automated way to output my search results to my mySQL database.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...