[graylog2] Re: Graylog-server REST API returning incorrect results for /search/universal/keyword

2015-12-10 Thread Drew Miranda
NEVERMIND! I had to use -H 'Accept:application/json' instead

On Thursday, December 10, 2015 at 10:41:04 AM UTC-6, Drew Miranda wrote:
>
> I should note, accessing directly from rest API page does work correctly, 
> but curl does not.
>
> On Thursday, December 10, 2015 at 10:40:22 AM UTC-6, Drew Miranda wrote:
>>
>> I'm using /search/universal/keyword to check if the last 10 minutes 
>> contain any indexed messages for aboslute time ranges. Before upgrading to 
>> 1.3.0 (on 1.2.2) this returned the JSON object which does not require 
>> specifying return fields.
>>
>> However, after upgrading to 1.3.0 it ONLY returns the CSV output and will 
>> not return the json output. I even specified the header in curl -H 
>> 'Content-Type: application/json'
>>
>> Is there any way to return the COUNT of message for a query now? Let me 
>> know if I should submit a bug report!
>>
>

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/3e9a4415-5047-4af6-838e-4b3e8370a230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[graylog2] Re: Graylog-server REST API returning incorrect results for /search/universal/keyword

2015-12-10 Thread Drew Miranda
I should note, accessing directly from rest API page does work correctly, 
but curl does not.

On Thursday, December 10, 2015 at 10:40:22 AM UTC-6, Drew Miranda wrote:
>
> I'm using /search/universal/keyword to check if the last 10 minutes 
> contain any indexed messages for aboslute time ranges. Before upgrading to 
> 1.3.0 (on 1.2.2) this returned the JSON object which does not require 
> specifying return fields.
>
> However, after upgrading to 1.3.0 it ONLY returns the CSV output and will 
> not return the json output. I even specified the header in curl -H 
> 'Content-Type: application/json'
>
> Is there any way to return the COUNT of message for a query now? Let me 
> know if I should submit a bug report!
>

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/51ef4330-f8c0-4bb0-b165-ff5617db2ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.