Hi, simply provide an Accept header (i. e. Accept: application/json; see https://en.wikipedia.org/wiki/Content_negotiation) in your HTTP request to always get a response with the application/json content type.
Cheers, Jochen On Wednesday, 13 January 2016 22:54:01 UTC+1, packetsmacker wrote: > > So I see two/search/universal/absolute methods (sorry I can't see to > recall the term at the moment) and the only difference I can see is one > requires fields and returns a csv the other returns json and doesn't > require feilds. Other then that I cant tell what is different. > <http://157.89.60.157:12900/api-browser#!/Search/Absolute/searchAbsoluteChunked_get_0> > > The problem I have is my get used to return json. Now when I run the > script it looks like it is failing because it is getting back a csv. So > when I went to look at the documentation I couldn't figure out how graylog > would know which way I wanted it to return the data. I think it was updated > since the last time I ran my script but I don't take care of that side of > the servers. How do I get it to return json? > > <http://157.89.60.157:12900/api-browser#!/Search/Absolute/searchAbsoluteChunked_get_0> > -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/bc070dda-7d2a-47fc-be4a-77af17ca9b1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
