- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

russell120
Communicator
11-06-2018
10:57 AM
Hi,
How do I search through a field like field_a
for its unique values and then return the counts of each value in a new table?
example.csv
field_a
purple
purple
purple
gold
gold
black
How do I return a table that looks like this:
newField count
purple 3
gold 2
black 1
In reality I have hundreds of values so the query needs to be able to find all unique values, not just "purple", "gold", and "black".
Thank you.
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sudosplunk
Motivator
11-06-2018
11:18 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sxddhxrthx
Engager
12-19-2018
10:07 PM
This can be achieved by using a simple stats count by command
your base search | stats count by field_a
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sudosplunk
Motivator
11-06-2018
11:18 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

russell120
Communicator
11-06-2018
11:47 AM
I completely forgot about top
. This works, thanks!
