after upgrade to 4.0.2 we cannot use rest api search export:
rest api call ‘api/search/universal/keyword/export?query=%22sshd%22&keyword=%22yesterday%22&batch_size=500&fields=timestamp’ get 0 records back
if we use the call ‘api/search/universal/keyword?query=“sshd”&keyword=“yesterday”&batch_size=500&fields=timestamp%2Csource%2Cmessage’ we are see the messages but in json format
was the export disabled in 4.0.2 or is it a bug?
Update: if we set limit=-1 then we get records but this field is not necessary according to documentation
/search/universal/(absolute|relative|keyword)/ and export was marked as deprecated in graylog 3.3, it should work in 4.0, but not correctly, as it’s not used in frontend anymore.
For export use newer api using views: /views/search/messages/{searchId}/{searchTypeId} searchId = ID of an existing Search searchTypeId = ID of a Message Table contained in the Search
JSON request: {"execution_state":{"parameter_bindings":{}},"fields_in_order":["timestamp","source","message"],"limit":500}