Reporting

How to display only one value in column?

aa0
Path Finder

Hi,

I'm trying to display only a value in one particular column, for instance represent one team for different status. This is what I've done so far:

index=xxx | stats count by Team, status

aa0_0-1662046233629.png

*my expecting result is to have only one "DevOps" to represent team for different status displayed.

Team        |     Status         | Count

DevOps     Assigned           10

                      Pending              5

                      New                      2

                      Resolved            1

                        ..........

Many thanks for any help 🙂

Labels (1)
0 Karma
1 Solution

matt8679
Path Finder

You could try something like this:

index=xxx | stats count by Team, status
|eval field="status=" .status. "  ".  "count=" .count
|stats values(field) as stats by Team

View solution in original post

0 Karma

matt8679
Path Finder

You could try something like this:

index=xxx | stats count by Team, status
|eval field="status=" .status. "  ".  "count=" .count
|stats values(field) as stats by Team

0 Karma

aa0
Path Finder

Thanks Matt!!!

0 Karma

gcusello
SplunkTrust
SplunkTrust

hi @aa0,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @aa0,

it isn't possible!

It's possible (but it's quite long to implement) to have something like this:

Team        |     Status         | Count
DevOps     
                 Assigned           10
                 Pending             5
                 New                 2
                 Resolved            1

 Ciao.

Giuseppe

0 Karma

aa0
Path Finder

So what will be the possible query to begin with?

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...