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
logger.info(null) throws NPE when publishing with version 1.6
java.lang.NullPointerException: null at com.internetitem.logback.elasticsearch.ClassicElasticsearchPublisher
.serializeCommonFields(ClassicElasticsearchPublisher.java:37)
Also es-logger reports this:
2022-05-10 17:48:27,075 WARN [es-writer-6] es-error-logger:
Failed to send events to Elasticsearch: Got response code [400] from server with data
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The bulk request must be terminated by a newline [\\n]"}],"type":"illegal_argument_exception","reason":"
The bulk request must be terminated by a newline [\\n]"},"status":400}
logger.info(null) throws NPE when publishing with version 1.6
Also es-logger reports this:
ClassicElasticsearchPublisher line 37
It's very possible that a value is unexpectedly null. One might fix it thus:
This way in the case of a null value the string "null" is placed in the message.
The text was updated successfully, but these errors were encountered: