Splunk Search

How to display all values in a field?

NizanCohen
Explorer

Hi.

I'm looking to make a table/stats of all fields in a search to display all values inside of each field.

Similar to stats count, but instead of counting the amount of values, I want to display all values inside.

Labels (1)
0 Karma

Manasa_401
Communicator

Hello @NizanCohen 

Try this : stats values(*) as *  

OR using a by clause

stats values(*) as * by unique_field

This will give the result as multivalued field.

Thanks

Manasa

0 Karma

NizanCohen
Explorer

Should I keep it as "unique_field"?

Because it returns no results the way you wrote here (I copy pasted it the way it is).

0 Karma

Manasa_401
Communicator

That unique_field is just for reference.

First try |stats values(*) as *

This will give all the data in single row as multivalued fields.

If you have any field in your data by which you can group it then use that field in by clause.

|stats values(*) as * by your_field_name

0 Karma
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...