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!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...