Splunk Search

Getting unique values of a field.

splunkpoornima
Communicator

Hi all. I have a field called TaskAction that has some 400 values. But, I only want the distinct values of that field.

Plz help me with the query.

Labels (1)
Tags (1)
1 Solution

Ayn
Legend

There's dedup, and there's also the stats operator values.

View solution in original post

bbialek
Path Finder

This seems to work when trying to find unique values for a field, like 'host':
* | chart count by host

Ayn
Legend

There's dedup, and there's also the stats operator values.

slierninja
Communicator

stats values(field) is what I used.

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 ...