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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...