all good i figured it out after posting. i had to add an input (System -> 
Input -> Launch new Input) - which listened on port 12201
working now, RTFM

On Friday, 10 February 2017 07:57:30 UTC+8, Wallace Turner wrote:
>
> I am sending a log message to the api 
>
> POST http://192.168.0.9:9000/gelf HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> Content-Type: application/json; charset=utf-8
> Host: 192.168.0.9:9000
> Content-Length: 396
> Connection: Keep-Alive
>
> {
>   "facility": "RandomPhrases",
>   "file": "?",
>   "host": "DESKTOP-U6AFHCT",
>   "level": 6,
>   "line": "?",
>   "timestamp": "1486684392.85276",
>   "version": "1.0",
>   "LoggerName": "ConsoleApplication2.Program",
>   "full_message": "[7] Program - foo",
>   "short_message": "[7] Program - foo",
>   "_app": "RandomSentence",
>   "_version": "1.0",
>   "_Environment": "Dev",
>   "_Level": "INFO"
> }
>
> and the response back from the server
>
> HTTP/1.1 404 Not Found
> X-Graylog-Node-ID: 204cca32-be19-4980-b35a-bac6b102780f
> Content-Type: application/json
> Date: Thu, 09 Feb 2017 23:53:11 GMT
> Content-Length: 50
>
> {"type":"ApiError","message":"HTTP 404 Not Found"}
>
> Please tell me what i am doing wrong? according to the docs the path is 
> correct (/gelf) and the server is listening as its otherwise responding..
>

-- 
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/2e9e9390-d3bc-444b-81fa-7dbb008838cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to