Splunk Search

How to make a query to search filed by taking output from the the 1st query

satyajit7
Explorer

I have a requirement like, I have to create a dashboard and there will be a input filed called as account Id and after entering the account id it will give desire results.

 

I have two payloads and one payload contain accountId along with transId. And another payload contain transId and merchantname and etc.

 

My 1st query will fetch the transid after giving account id as input.

 

My 2nd query need that tansid to search other filed for the dashboard.

 

How can I achieve this. Please someone help.

 

In last i want to use the output of the 1st query as input to the 2nd query and both query need to be in same place.

 

0 Karma

diogofgm
SplunkTrust
SplunkTrust

Hi,

When you say payloads, do you mean data you have indexed?

From what you describe, that looks like a simple dashboard with 1 input and 2 panels:

- table to list the transId's
- table to list the merchant based on the transId selected on the 1st  panel

Composing the dashboard structure is quite simple within splunk.
https://docs.splunk.com/Documentation/Splunk/8.1.3/SearchTutorial/Createnewdashboard

Regarding the contextual drill down (listing data on 2nd panel based on the data selected in the 1st) check the following:
https://docs.splunk.com/Documentation/Splunk/8.1.3/Viz/DrilldownIntro

If you are having trouble building a simple dashboard and you haven't completed it yet, I would recommend you do the free Splunk fundamentals 1 as it covers, among with other Splunk content, building dashboards like this.
https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html

------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma
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 ...