You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing default field names on LogstashAccessEncoder by setting the fieldNames property does not change the name of the field used by the ContextJsonProvider.
The "context" field is applicable to both IAccessEvent and ILoggingEvent and should therefore be declared in CommonLogstashFieldNames instead of LogstashFieldNames.
The text was updated successfully, but these errors were encountered:
ContextJsonProvider can be used for both ILoggingEvent and IAccessEvent. The `LoggingEventJsonProviders#addContext` and `AccessEventJsonProviders#addContext` methods should be moved into the common `JsonProviders` base class.
Related to issue #658.
Changing default field names on
LogstashAccessEncoder
by setting thefieldNames
property does not change the name of the field used by the ContextJsonProvider.The cause is the "instanceof" at line https://github.com/logstash/logstash-logback-encoder/blob/main/src/main/java/net/logstash/logback/composite/ContextJsonProvider.java#L57.
The "context" field is applicable to both IAccessEvent and ILoggingEvent and should therefore be declared in
CommonLogstashFieldNames
instead ofLogstashFieldNames
.The text was updated successfully, but these errors were encountered: