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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...