All Apps and Add-ons

Merging data from a database into splunk

brettcave
Builder

With splunk, I would like to correlate event-driven data with data from a database. I am able to export from a database, say Mongo, to JSON and then import that data into splunk (or MySQL to csv)

What is the best approach to merging data into splunk?

The first approach I have in mind is to just import the full database (and possibly delete older uploads via | delete) to run reports on, but ideally, I would like to try merge data in.

Any other approaches to this that comes to mind?

Tags (3)
0 Karma
1 Solution

emotz
Splunk Employee
Splunk Employee

you might want to take a look at this app:
http://splunk-base.splunk.com/apps/36664/splunk-mysql-connector

If the data in the database changes frequently, using a lookup is probably more efficient as you are not duplicating the data in Splunk. If the data is more static and many more correlations or fields are required to join with other machine data, you could consider indexing the data from a file that you are already exporting.

View solution in original post

emotz
Splunk Employee
Splunk Employee

you might want to take a look at this app:
http://splunk-base.splunk.com/apps/36664/splunk-mysql-connector

If the data in the database changes frequently, using a lookup is probably more efficient as you are not duplicating the data in Splunk. If the data is more static and many more correlations or fields are required to join with other machine data, you could consider indexing the data from a file that you are already exporting.

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...