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!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Seamless IT/OT Security: A Hands-On Look at the Cisco Cyber Vision Splunk Add-on

With just a few clicks, you can ingest critical OT asset details, vulnerabilities, baseline deviations, ...