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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...