Get count of specified field (unique-value)

Hi, everyone.
I want to get the count of every different value of specified field.
Now I am using the genre syntax "genres"
"aggs": { "genres" : { "terms" : { "field" : "L4_SRC_PORT"} } }
but the return doesn't look good

thank you in advance : )

Look at https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html

I found the reference just now haha Thank u :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.