Hey Greg,
your request payload is incorrect. You are passing a field named “relative” for
the relative time range specification, it needs to be named “range” instead.
Also you currently have to pass its value as a String (“0”) although it is
actually a number.
Kr,
D.
--
Tel.: +49 (0)40 609 452 077
Fax.: +49 (0)40 609 452 078
TORCH GmbH - A Graylog company
Steckelhörn 11
20457 Hamburg
Germany
Commercial Reg. (Registergericht): Amtsgericht Hamburg, HRB 125175
Geschäftsführer: Lennart Koopmann (CEO)
> On 30.06.2015, at 17:16, [email protected] wrote:
>
> When I try and create a widget for an existing dashboard using the REST API I
> get an internal server error (500). This logged on the server as Unhandler
> Exception in REST resource. Java.Lang.NumberFormatException : null
>
> This is the POST request body I am using {"description":"Event Details
> Requested
> Total","type":"SEARCH_RESULT_COUNT","config":{"range_type":"relative","relative":0,"trend":false,"query":"Feed:RBFootball
> AND Type:EventDetailsRequested","lower_is_better":false}}
>
> Is there something I'm doing incorrectly?
>
> --
> 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/d/optout.
--
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/d/optout.