Splunk Enterprise

joining two values on single value

sompalle1
Engager

Hi,

i have Total with me, (Table A)

Name            Total

a                      1000

b                       1600

c                       2500

Table B
From          To              Stage

0                  1000          Excellent

1000          1500          Good

1500          2000         Poor

i need to join Total with From & To in order to get Stage.

 

 

Thanks.

Labels (1)
0 Karma

sompalle1
Engager

thanks for reply

nope not working

0 Karma

manjunathmeti
Champion

Share your search query.

0 Karma

manjunathmeti
Champion

You can use the map command to run the TableB search query for each Total value in TableA.

index=s1 | table Name, Total | map search="search index=s2 From <= $Total$ AND To <= $Total$" | eval Total=$Total$, Name=$Name$ | fields Name, Total, Stage"

 

If this reply helps you, an upvote/like would be appreciated.

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!

Splunk Asynchronous Forwarding Explained

Splunk asynchronous forwarding is often misunderstood as simply setting autoLBVolume. That is not quite right. ...

55 Days to Go: Secure Your Seat at Splunk University in Denver

Your .conf26 Experience Starts Before Opening Keynote  If Denver is known for its mile-high elevation, Splunk ...

(re)Introducing the Splunk Community Champions + 2026 – 2027 Splunk MVPs ...

This program exists as a channel to empower and recognize Splunk advocates and help supercharge initiatives to ...