Rest API /views/search/{id}/execute return no result

Hi,
We are getting no result when call API /views/search/{id}/execute
Example result blow

{
  "execution": {
    "done": false,
    "cancelled": false,
    "completed_exceptionally": false
  },
  "results": {},
  "id": "xxxxxxxxxx",
  "search_id": "xxxxxxxx",
  "owner": "xxxxxxxx",
  "executing_node": "4xxxxx-8xxxx-3xxxxxx",
  "cancel_after_seconds": 0
}

Our Environment

Ubuntu 24.04
Graylog 6.1.5
Opensearch: 2.15

We have tried on using curl and on API browser, both are returning no results ( “results”: {})
It was working fine on Graylog 4.x until we migrated it to version 6
Any changes on the search API for version 6?

We are following the info from

I guess i answer my own question, look like the /api/views/search/{id}/execute is now asynchronous.
Need to make another call /api/views/search/status/{jobid} for the results. The jobid is from the first call id.

1 Like

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