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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...