Reporting

can I join report results

MonkeyK
Builder

Say I have two scheduled reports with results like:

report1 - source destination score1
report2 - source destination score2

how can I join the results of these two scheduled reports so that I can see
combined report: source destination score1 score2

(note, the actual reports are far more complex and I cannot simply combine the queries to make one new report)
I have considered (and solved) writing the output to a lookup table and doing the joins from those. There is some appeal to that, but I would like to know how to do it without lookup tables.

0 Karma
1 Solution

cmerriman
Super Champion

you sure can!

I would try to use loadjob
https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Loadjob

| loadjob savedsearch="username:appname:report1"|fields source destination score1|join source destination [| loadjob savedsearch="username:appname:report2"|fields source destination score2]

tweak as needed.

View solution in original post

jplumsdaine22
Influencer

Have a look at the | savedsearch or |loadjob commands

Basically you can run

| loadjob savedsearch="<user-string>:<app-string>:report1"| append [| loadjob savedsearch="<user-string>:<app-string>:report2"]

cmerriman
Super Champion

you sure can!

I would try to use loadjob
https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Loadjob

| loadjob savedsearch="username:appname:report1"|fields source destination score1|join source destination [| loadjob savedsearch="username:appname:report2"|fields source destination score2]

tweak as needed.

MonkeyK
Builder

Works great! Thanks cmerriman!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...