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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...