Having a bit of trouble with a Graylog installation on Azure.
Its running ok - I can log in, specify inputs etc.
I use nginx to proxy the ports on the front interface (due to the way that Azure exposes its Its).
So i have nginx forwarding port 80 to 9000, and then have an input which routes 12200 to 12201.
NXlog is sending messages, but for every message I get the following:
INFO connecting to <myserver>:12200
ERROR om_tcp received data from remote end (got 100 bytes)
ERROR last message repeated 2 times
ERROR om_tcp received data from remote end (got 43 bytes)
INFO reconnecting in 1 seconds
ERROR om_tcp detected a connection error; End of file found
So its getting through the nginx proxy, but the connection is being terminated by the server.
I used curl to try and connect to the 12200 port to see if it was forwarding, and the server.log of graylog had error lines all over it - so its clearly getting to the graylog server.
If I run it through the proxy, im getting a 400 error.
HTTP/1.1 400 Bad Request
Server: nginx/1.10.3 (Ubuntu)
Date: Tue, 23 Jan 2018 11:00:00 GMT
Content-Type: text/html
Content-Length: 182
Connection: close
400 Bad Request
400 Bad Request
nginx/1.10.3 (Ubuntu)
If I run it on the box and point at at the input, then the errors in the logs complain about the Gelf message length, so at least the input is configured. So all the problems point to nginx. Heres the config - 2 ‘sites’ available: