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!

New Release of Federated Search: Bringing Splunk Analytics to More of Your Data

Organizations today are generating more data than ever and storing it across cloud object stores, data lakes, ...

Inside Event Intelligence: How ITSI Turns Network Alerts into Actionable Incidents

Tech Talk Inside Event Intelligence: How ITSI Turns Network Alerts into Actionable Incidents   Correlating ...

Observability Simplified: Combining User Experience, Application Performance & ...

  Tech Talk Network to App: Observability Unlocked   Today’s digital environments span applications, ...