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 🙂

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...