Splunk Search

In a chart, how can i copy values from coalesce values under different (3) columns? This is to do reporting in 2 columns at most.

kshanky143
Path Finder

Hello

I have a chart which looks like this ..

src InQueueForX InQueueForY InQueueForZ
X -----------10
Y ------------------------ 20

Z ---------------------------------------------30

How can i modify it. so that i get all the information in 2 columns as shown below
src InQ
X 10
Y 20
Z 30

Thanks.
Sheshank

0 Karma
1 Solution

kshanky143
Path Finder

Got the answer 🙂

mvappend did the job ..
| eval InQ=mvappend(InQForX,InQForY,InQForZ)
| table src,InQ

View solution in original post

kshanky143
Path Finder

Got the answer 🙂

mvappend did the job ..
| eval InQ=mvappend(InQForX,InQForY,InQForZ)
| table src,InQ

somesoni2
Revered Legend

In case you want to know, you can use nested coalesce as well to achieve the same

| eval InQ=coalesce(InQForX,coalesce(InQForY,InQForZ)) | table src InQ

kshanky143
Path Finder

awesome ... that one works too .. thank you 🙂

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...