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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...