In the web UI once a search has been performed it’s then possible to expand any of the fields and select ‘Quick Values’ which lists the relative percentage of the field values found in the search. Is it possible to do the same using the API?
Oh, I see…
I guess it is under the Search/* endpoint, because that is where the request goes when a Quick Value Widget is created. I can’t check, my API-Browser is broken for some reason
Well, here is what I (once) found out about the terms/ endpoint by using the Firefox Network Console:
Query URL: https://graylog.example.de/api/search/universal/relative/terms?query=action%3Aallow&range=300&field=application
(Note: %3A is URL-encoded for colon)
This is basically how to use the terms endpoint. Just give it a query, a (time)range, and a field to aggregate on in the url and it will return you the terms object in the response-JSON.