Hi,

you're missing the mandatory "version" field, 
see http://docs.graylog.org/en/2.1/pages/gelf.html#gelf-format-specification 
for details.

Cheers,
Jochen

On Monday, 24 October 2016 23:09:57 UTC+2, [email protected] wrote:
>
> http://docs.graylog.org/en/2.1/pages/sending_data.html#gelf-via-http
>
>
> Following the Documentation I created a GELF HTTP Listener.
> Using CURL I just tried to send the basic message.
>
> C:\Program Files\cURL>curl -XPOST http://graylog:12201/gelf -p0 -d 
> '{"short_message":"Hello 
> there","host":"example.org","facility":"test","_foo":"bar"}' 
> -v -B
> Note: Unnecessary use of -X or --request, POST is already inferred.
> *   Trying 10.0.5.90...
> * Connected to gralog (10.0.5.90) port 12201 (#0)
> > POST /gelf HTTP/1.0
> > Host: graylog:12201
> > User-Agent: curl/7.46.0
> > Accept: */*
> > Content-Length: 69
> > Content-Type: application/x-www-form-urlencoded
> >
> * upload completely sent off: 69 out of 69 bytes
> * HTTP 1.0, assume close after body
> < HTTP/1.0 202 Accepted
> < Content-Length: 0
> < Connection: close
> <
> * Closing connection 0
>
> So I get a 202 Accepted.. But when trying to locate messages received by 
> input...   It is showing no response.
>
> Ideas anyone?
>
>

-- 
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/6b13a3ca-f1a8-46f0-9951-4b4db5d5a6ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to