The message field is useful for a number of reasons in applications that consume and display logs. However, the properties that appear in the message field are not currently customizable. As per the documentation, the pattern is fixed as: ${remoteHost} - ${remoteUser} [${timestamp}] "${requestUrl}" ${statusCode} ${contentLength}
In my particular case, the remoteUser property is not allowed to be logged, for security reasons. I've ignored the separate remote_user field, but I cannot remove that property from the message field without ignoring the message field entirely.
It would be nice if the pattern that the message field logged was configurable.
The message field is useful for a number of reasons in applications that consume and display logs. However, the properties that appear in the
messagefield are not currently customizable. As per the documentation, the pattern is fixed as:${remoteHost} - ${remoteUser} [${timestamp}] "${requestUrl}" ${statusCode} ${contentLength}In my particular case, the
remoteUserproperty is not allowed to be logged, for security reasons. I've ignored the separateremote_userfield, but I cannot remove that property from themessagefield without ignoring themessagefield entirely.It would be nice if the pattern that the
messagefield logged was configurable.