Splunk Search

How to search the count of all values for a field, and also display all the values in the results?

nasamajh09
New Member

I want to count all the values of a field, and display all the values as well. How do I write a search in Splunk to achieve this?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try ... | stats count(field), values(field) | ....
If that doesn't solve your problem, please be more specific in your question.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...