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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

A Four-Part Event Series: Full Stack Observability For the AI Era

As AI reshapes applications, infrastructure, and the way teams operate, the traditional boundaries of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...