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

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...