Export CSV via Graylog REST API


(Novitoll) #1

Hello, I didnt figure out where to post this question…

I want to get messages as CSV format, not as JSON, because I have to convert JSON to CSV eventually on my side – and this is rather resource consuming.

So this is my current GET request and it works
GET https://my_graylog/api/search/universal/absolute?query=*
Content-Type:application/json
Accept: application/json

But I want to get messages as CSV, e.g. Accept: text/csv MIME type. Could you please assist?

Thanks


Graylog and API
(Jan Doberstein) #2

@Novitoll please create a new Topic for new questions and do not highjack …

you can query the API as the GUI already does to create an export. You can get the Information from API Browser.