How to use the Graylog API to query data?

How can I use the Graylog API to query data for the last hour, with the field status:200 and stream:000000000000000000000001 ?
I only need the count, not the display of all the data. I’ve tried using /api/search/aggregate many times, but it has failed each time. Could you please help me with an example? Thank you very much.

ps:
graylog 5.12
stream id :000000000000000000000001

imho, the docs for the Search Scripting API and the examples should get you on track: Search Scripting API

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