Splunk Search

How to group by without aggregation?

BernardEAI
Communicator

Hi

I'm trying to group items by a specific field, and get all the values returned (i.e. without aggregation). I have the following:

BernardEAI_0-1646040431361.png

I'm trying to convert that to:

BernardEAI_1-1646040741075.png

I have tried 

 

 

| chart values(value) by field
| transpose header_field=field

 

 

However the values(value) only selects unique values - I'm looking for all values.

 

 

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Use list instead of values

| chart list(value) by field
| transpose header_field=field

However, this may not give quite what you want because you still have multi-value fields.

Assuming all fields are present for each set, you could try this

| streamstats count as row by field
| xyseries row field value
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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