Splunk Search

Show multi values

kig121
Loves-to-Learn Lots

Hi, i am a beginner.

I have 2 sourcetype (table). One of conatins requirement_id other ones conatins Testcase_id and requirement_id.

Must have: Join Testcase_id sourcetype to Requirement_id

 

Note: Sorting (ordering of Testcase_id sourcetype is not a solution, because requirment_id souercetype  table contains many other important attribute which is missing Testcase_id sourcetype.

Requirement id
1
2
3
4
5
Testcase_idRequirement_id
141
142
143
871
872
873
764
674
455

 

My Expectation:

Requirement_idTestcase_id
114
187
214
287
314
387
476
467
545
Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

you could try the next

Index IN (<IDX 1>, … <IDX 2>) sourcetype IN (st1, st2)
| stats values(*) as * by Requirement_id, Testcase_id 
| sort Requirement_id

r. Ismo 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
search test case
| join requirement_id [search requirements]
| sort requirement_id
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...