- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get distinct values of one field by another field
sridamg
Explorer
09-04-2014
07:02 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

pradeepkumarg
Influencer
09-04-2014
07:08 AM
Check if this helps..
... | dedup field1, field2 | stats list(field1) by field2
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

MuS
Legend
09-04-2014
07:06 AM
Hi sridamg,
try something like this:
some search | stats values(field1) by field2
see the docs for more information http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/CommonStatsFunctions
cheers, MuS
