|
ecs.url.full = (socket && socket.encrypted ? 'https://' : 'http://') + headers.host + url |
It looks like url attribute is being set with information from req instead of ecs like the rest of the attributes. This is causing full to reflect a different address than domain in our environment. Would this be more appropriate?
ecs.url.full = (socket && socket.encrypted ? 'https://' : 'http://') + ecs.headers.host + ecs.url.path
ecs-logging-nodejs/helpers/lib/http-formatters.js
Line 59 in 26aaa6a
It looks like
urlattribute is being set with information fromreqinstead ofecslike the rest of the attributes. This is causingfullto reflect a different address thandomainin our environment. Would this be more appropriate?ecs.url.full = (socket && socket.encrypted ? 'https://' : 'http://') + ecs.headers.host + ecs.url.path