Splunk Search

lookup using 2 search results

nvegesn222
New Member

hi,

from 1 search i got below results.

txn ref no |amount|date

and another search got the below.

acct no|txn ref no

now how can i combine these both and need result as below.

acctno|txnrefno|amount|date
Tags (2)
0 Karma

woodcock
Esteemed Legend

Like this:

search one here OR search two here
| eval txnrefno=coalesce('txn ref no', txnrefno)
| eval acctno=coalesce('acct no', acctno)
| fields amount date acctno txnrefno
| stat values(*) AS * BY acctno txnrefno
0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@nvegesn222 - Can you provide the search that you used? That would be helpful for users attempting to assist you in how you got your initial output and how you want your output to look like.

In general, your question has a greater chance of being answered by experts in the Answers community when when you provide as much information and context as possible. Thanks.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...