.conf25 registration is now open!Register today

 What's new in Splunk Logging for Java

The current version of Splunk Logging for Java is 1.11.8. This topic summarizes the changes included in each version of the SDK.

 Version 1.11.8

 Minor Changes

  • Force okio version and upgrade okhttp3 to latest stable release.

 Version 1.11.7

 Bug fixes

  • ClassCastException for Log4j Appender was fixed.

 Version 1.11.6

 Enhancements

  • Sending Java Throwable object instead of exception message in event.

  • Formatter support added in formatting event message in Java Util Logging.

  • Any message formatter can be added from properties file.

  • By default, SimpleFormatter is used to format event message.

  • Layout (deprecated) in socket appender configuration (TcpAppender) is replaced with Encoder.

 Minor Changes

  • Starting a new dispatcher always for OkHttpClient builder.

  • README file modified with dependency management guidance.

  • JsonHttpContentType in HttpEventCollectorSender is fixed based on RFC7231 specs.

  • Event message strings starting with commenting characters (#, // & /**/) are allowed.

 Version 1.11.5

 Critical Security Update

  • Bump Log4J to version 2.17.2 @see CVE-2021-44832.

  • Bump Logback to version 1.2.11 @see CVE-2021-42550.

 Enhancements

  • Added StandardErrorCallback class. Register ErrorCallback implementations via Logback or Log4J XML config.

  • ErrorCallback class used to handle errors other than server errors.

 Minor Changes

  • Bump org.slf4j:slf4j-api to version 1.7.36.

  • Bump com.squareup.okhttp3:okhttp to version 4.9.3.

  • Bump com.google.code.gson:gson to version 2.9.0.

  • Flush HttpClient after flushing appenders.

  • Timeout settings modified for OKHttpClient.

  • Default behavior of Splunk event header and body are reverted back to version 1.7.3.

 Version 1.11.4

 Critical Security Update

  • Update Logback to version 1.2.9 per CVE-2021-42550.

 Version 1.11.3

 Critical Security Update

  • Upgrade Log4J again v2.17.0 related to CVE-2021-45046 & CVE-2021-44228.

 Version 1.11.2

 Critical Security Update

  • Upgrading log4J to 2.16 per CVE-2021-45046.

 v1.11.0

 Minor Changes

  • Added a parameter to set await termination timeout.

 v1.10.0

Version 1.10.0 (2021-07-30) of Splunk Logging for Java contains the following changes since the last release:

  • Fixed issue: delayed time when using AsyncAppender

  • Fixed issue: timestamp recorded log event occurs instead of when log event is sent

  • Updated for local dockerized instances

  • Upgrade version of okhttp to 4.9.1

  • Upgrade version of slf4j to 1.7.30

  • Upgrade version of gson to 2.8.7

  • Upgrade version of junit to 4.13.2

  • Upgrade version of commons to 3.12

 v1.9.0

Version 1.9.0 (2021-04-20) of Splunk Logging for Java contains the following changes since the last release:

  • Changed to use an Okhttp client per appender rather than a global client

  • Fixed issue: TcpAppender no longer losing events when busy

  • Fixed issue: middleware now delegating on completion

  • Fixed issue: empty strings in configs

  • Fixed issue: sending raw events to HEC

  • Added support for templated metadata values to be applied to an appender

  • Added EventHeaderSerializer to allow specifying HEC metadata

  • Added support for specification of timeout parameters

  • Added support for time to be specified by EventBodySerializer

 v1.8.0

Version 1.8.0 (2020-01-15) of Splunk Logging for Java contains the following changes since the last release:

  • Updated JSON serialization. Message property should not be encoded as a string.

  • Changed underlying HTTP client to OkHttp. Decrease memory usage and increase performance.

  • Updated Gradle build plugins to latest versions.

 v1.7.3

Version 1.7.3 (2019-04-11) of Splunk Logging for Java contains the following changes since the last release:

  • Fixed issue #114: Updated Log4j dependency version to 2.10.0.

 v1.7.2

Version 1.7.2 (2019-04-01) of Splunk Logging for Java contains the following changes since the last release:

  • Fixed issue #112: The httpclient is closed properly now on logback shutdown.

 v1.7.1

Version 1.7.1 (2019-01-23) of Splunk Logging for Java contains the following changes since the last release:

  • Changed HttpEventCollectorLogbackAppender stop method to call this.sender.close()
  • Renamed 'Http' plugin for HttpEventCollectorLog4jAppender to 'SplunkHttp'

 v1.6.1

Version 1.6.1 (2018-10-24) of Splunk Logging for Java contains the following changes since the last release:

  • Fixed issue #75: TcpAppender performance improvement prevents 100% CPU usage.

 v1.6.0

Version 1.6.0 (2018-06-08) of Splunk Logging for Java contains the following changes since the last release:

  • Changed messagedMimeType metadata property to messageFormat.
  • Fixed unit tests and performance issues.
  • Fixed issues with log4j.
  • Fixed issue #74: Cookie expiry date.
  • Fixed issue #75: Added raw endpoint support to HEC.

 v1.5.2

Version 1.5.2 (2016-10-11) of Splunk Logging for Java contains the following changes since the last release:

  • Added support for setting the host metadata field.
  • We now send additional logger attributes (logger name, thread name, context/property maps) to the event.
  • Added support for exception reporting as its own field.
  • Added support for marker including as its own field.

 v1.5.1

Here's what was new in version 1.5.1 (2016-02-17) of the library:

  • Fixed issues with Logback 1.1.x.

 v1.5.0

Here's what was new in version 1.5.0 (2015-09-22) of the library:

  • Added support for logging to HTTP Event Collector.

 v1.0.1

Here's what was new in version 1.0.1 (2015-04-06) of the library:

  • Bug fixes.

 v1.0.0

Here's what was new in version 1.0.0 (2015-02-06) of the library:

  • Released publicly.