How can I specify exact GELF endpoint? #115
-
Let's say I would like to specify exact GELF endpoint to be:
Is it currently possible with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
So if you want to move it to a subfolder behind a proxy you can provide the port (Assuming its a non-standard port for Http[s]) as part of the The Port is optional, https://github.com/dustinchilson/NLog.Targets.GraylogHttp/blob/master/src/NLog.Targets.GraylogHttp/GraylogHttpTarget.cs#L66 |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
-
It's part of the Graylog Http Input spec, https://docs.graylog.org/en/3.1/pages/gelf.html#sending-gelf-messages-via-http-using-curl But it might be true that in some proxy situations that it might not be great. Might be helpful to have a setting to disable that. |
Beta Was this translation helpful? Give feedback.
/gelf
is always appended to the url,https://github.com/dustinchilson/NLog.Targets.GraylogHttp/blob/master/src/NLog.Targets.GraylogHttp/GraylogHttpTarget.cs#L64
So if you want to move it to a subfolder behind a proxy you can provide the port (Assuming its a non-standard port for Http[s]) as part of the
graylogServer
variable and not provide thegraylogPort
variable.The Port is optional, https://github.com/dustinchilson/NLog.Targets.GraylogHttp/blob/master/src/NLog.Targets.GraylogHttp/GraylogHttpTarget.cs#L66