Splunk Search

DBConnect - Best way to join three tables

UMoritz
New Member

Hi

I've three tables with the following structure in the same Microsoft SQL database:

ApplicationEvent - Columns: id,application_id,message

Application - Columns: id,name, applicationtype_id

ApplicationType - Columns: id, name

I want to get the following row in SPLUNK:
ApplicationEvent.message, Application.name, ApplicationType.name

What's the best way to achieve this?

I've tried automatic lookups, lookup command and join without success.

Thanks in advance

Tags (1)
0 Karma

UMoritz
New Member

Hi all

Thanks for your answers. I'll check this.

0 Karma

jpass
Contributor

Why not create a 'view' on the database server that joins these tables. Then your dbconnect query is a simple select * from view_name

0 Karma

UMoritz
New Member

Hi jpass

thanks to you, too.

0 Karma

linu1988
Champion

Yes best think to do, it's waste of resource to do that in splunk..

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Have you considered joining them in SQL before indexing / loading into Splunk?

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...