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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...