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
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...