Can I Get Graylog search results count via API


I need to get a count of messages in search results for certain query via API?
Is it real?

Yes, you can.

Look at the /search/universal/relative and /search/universal/absolute JSON API calls.

At the bottom of the returned JSON, there is the field total_results which is what I believe you’re looking for.

Check my previous post, how to search using curl and API:

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