Getting Data In

Where to install the DBX db driver

eholz1
Contributor

Hello Again,

I have splunk enterprise running on a W2K8 R2 x64, and a MySQL database running
on a linux server. I would like to use DBX to run a query from Splunk on the windows machine,
and query the MySQL db.

There seems to be no driver for the db on the windows side, but there is a driver for Linux.
Should not the db driver go on the splunk server? or should I install the driver on the linux machine.

Thanks,
eholz1

0 Karma
1 Solution

eholz1
Contributor

Hello koshyk et al,

I am not quite sure I understand. Our forwarder is a linux machine using the Universal Forwarder. This box forwards
data to the Windows-hosted splunk server via tcp. The windows splunk server has the DBX installed.
If I install the driver on the forwarder (which is an *.rpm file) is the db connection then made from the forwarder to the database in question using the driver installed on the forwarder?

Thanks again for the clarification,

eholz1

View solution in original post

0 Karma

eholz1
Contributor

Hello koshyk,
Thanks for the input. I guess I was not clear, I do have the DBX component installed on my Windows based Splunk Enterprise server.
I am trying to get the DBX component to get data from the remote MySQL database.

Thanks Again,
eholz1

0 Karma

koshyk
Super Champion

hi, yes. You just need to play around with the inputs/connections/identities to get the information.
Please upvote/accept if you think any of my replies helped.

0 Karma

eholz1
Contributor

Your replies did help, thanks!

eholz1
Contributor

Hello koshyk et al,

I am not quite sure I understand. Our forwarder is a linux machine using the Universal Forwarder. This box forwards
data to the Windows-hosted splunk server via tcp. The windows splunk server has the DBX installed.
If I install the driver on the forwarder (which is an *.rpm file) is the db connection then made from the forwarder to the database in question using the driver installed on the forwarder?

Thanks again for the clarification,

eholz1

0 Karma

koshyk
Super Champion

Universal Forwarder (UF) CANNOT have DBconnect installed. You need full Splunk Enterprise software for DBconnect and hence better to have a HF with java installed.

So two options in front of you are
1. Ensure your connectivity from your Windows-hosted splunk setup and install DBconnect within it. collect within a Search Head and send data to indexers.
2. Install Splunk Enterprise your Linux machine and make it a heavy forwarder and send it to Indexers.

0 Karma

koshyk
Super Champion

The concept is
1. DBConnect to be installed in Splunk Heavy Forwarder (HF) (or a standalone Splunk system or in rare instances Splunk SHC)
2. Install DBconnect drivers in the same Splunk instance in this case Splunk HF
3. It should have connectivity to your client (ie. MySQL db in linux).

Hence the driver should be in Windows machine in your case as Splunk HF is a windows machine.

Get Updates on the Splunk Community!

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...

Alerting Best Practices: How to Create Good Detectors

At their best, detectors and the alerts they trigger notify teams when applications aren’t performing as ...

Discover Powerful New Features in Splunk Cloud Platform: Enhanced Analytics, ...

Hey Splunky people! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2408. In this ...