Hi Lennart, 

I found the problem, and it was not on chart generation but in the 
application that was sending messages to Graylog. There was a bug that sent 
all messages in a time interval with the same 'timestamp' value. So all 
messages sent in a minute, for example, was grouped in one single X-axis in 
the chart and making me believe that there was a problem with chart 
generation.

Sorry for taking your time with this issue and thanks for your help.


Reginaldo Russinholi


Em quinta-feira, 20 de fevereiro de 2014 11h04min50s UTC-3, Reginaldo 
Russinholi escreveu:
>
>
> Hi  Lennart,
>
>   I did that, but the generate chart only display the mean, count, total, 
> maximum or minimum value of my custom field inside the defined interval 
> (minute, hour and etc.) and I wanted to generate a chart with the absolute 
> field value. Of course, if I have 1 message per minute the mean will be 
> equal to the absolute value, but what if I have a lot of messages during a 
> minute and I want a chart to see how the values are varying from a message 
> to other.
>
> About the REST API, I tried to use 
> "/search/universal/relative/fieldhistogram" but I couldn't find a way to 
> get the value of my custom field, it seems that this method only accept the 
> values 'mean','count', 'total' in the field parameter. Is there any 
> documentation about that I can learn from?
>
> Thanks,
>
> Reginaldo Russinholi
>
> Em quinta-feira, 20 de fevereiro de 2014 09h20min09s UTC-3, lennart 
> escreveu:
>>
>> Hey Reginaldo, 
>>
>> select a field you want to chart from the sidebar, hit the little cog 
>> and press "Generate chart". Note that this is of course only possible 
>> for numeric values. 
>>
>> You can also get the same data via the REST APIs, that is true. :) 
>>
>> Let me know if you need help with anything. 
>>
>> Thanks, 
>> Lennart 
>>
>> On Wed, Feb 19, 2014 at 9:01 PM, Reginaldo Russinholi <[email protected]> 
>> wrote: 
>> > Hi, 
>> > 
>> > I'd like to generate a chart using a custom field value, that is inside 
>> the 
>> > messages sent to Graylog2, but using Graylog Web Interface I see no way 
>> to 
>> > do this. 
>> > 
>> > Is there a way to do this? Is it possible retrieve the custom field 
>> value 
>> > searching 'fieldhistogram' by using the Graylog2 REST API? 
>> > 
>> > Regards, 
>> > 
>> > Reginaldo Russinholi 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "graylog2" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to [email protected]. 
>> > For more options, visit https://groups.google.com/groups/opt_out. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to