Splunk Developer Day: Watch all Sessions!Access the Playlist here

What's new in the Splunk Enterprise SDK for Java

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

Version 1.9.5

New Features and APIs

  • Added static method addClusterMasterURIsToHosts in HttpService class to update list of Valid Hosts with Cluster Master Hosts.

  • Added instance method getClusterMasters in Service class to get list of cluster master hosts.

Version 1.9.4

Minor Changes

  • Added check for localhost IPv6 address, for IPv6 compatible apps.

  • Updating SSL_SOCKET_FACTORY instance on changing validateCertificates flag.

Version 1.9.3

Minor Changes

  • Re-fetch logic for instancetype and version fields if not set within Service instance to avoid NPE.

  • Check for local IP as alternative to localhost within HostnameVerifier, addressing issue with certain local workflows.

Version 1.9.2

New Features and APIs

  • Added feature that allows to update ACL properties of an entity.

Minor Changes

  • Added null check for child to handle error when no value is passed for a parameter in modular-inputs.

Version 1.9.1

New Features and APIs

  • SDK support for third-party load balancer sticky sessions (cookie persistence).

  • Added Args option for Saved Search history method.

Minor Changes

  • Special handling related to the semantic versioning of specific search APIs functional in Splunk Enterprise version 9.0.2 and Splunk Cloud Platform version 9.0.2209. These SDK changes enable seamless transition between APIs based on the version of Splunk Enterprise/Splunk Cloud Platform.

  • Updated checks to fetch storage passwords with wildcards in namespace.

Version 1.9.0

New Features and APIs

  • SDK support for splunkd search API changes, for Splunk Enterprise version 9.0 and later.

Minor Changes

  • Automated docs generation using GitHub actions.

Version 1.8.0

New Features and APIs

  • Added support for adding custom headers in Service class.

  • SSL certificate validation (default implementation) added.

  • Boolean flag is introduced to skip/validate certificate. Use HttpService.setValidateCertificates to enable/disable certificate validation.

  • Breaking change: Certificate validation is now enforced by default. For local or non-production use cases, use HttpService.setValidateCertificates(false).

  • apps/app-install replaced with apps/local.

  • Breaking change: HttpService.useTLS flag removed. Use HttpService.setSslSecurityProtocol to set a specific SSL/TLS implementation or else TLS version 1.2 is used by default for Java version 1.8.

Minor Changes

  • External entities restricted in XML factory.

  • Prevent expansion of external entities in document builder factory.

  • Headers modified in socket creation.

  • Http Request was using raw request headers by including escape characters. This was replaced with PrintWriter methods to avoid escape characters.

  • Host parameter used in socket is omitted to prevent exposing it to external users.

  • README.md file modified with all login methods and Splunk Search creation example.

  • Deploy plugin is removed from Splunk module pom to avoid redundancy.

  • Setter methods for Session and Bearer token added along with test case.

  • Use: service.setSplunkToken() for session tokens and service.setBearerToken() for long-lived tokens.

  • Modular input folder name renamed based on newer splunk folder name validation.

  • SDK app collection URL has been updated to v1.1.0 in docker compose file.

  • Test files in sdk app collections are modified based on python v3 syntax.

  • Added Saved Search test case based on title.

Version 1.7.1

  • Minor Changes
    • Dependency breaking changes are resolved

Version 1.7.0

  • New Features and APIs

    • Added Credits.md file along with licences
    • Improved TLS implementation as default behavior and turned on hostname verification for all hosts
  • Minor changes

    • Replaced Travis CI with Github actions
    • Fixed Javadoc generation while project packaging
    • Fixed breaking change of Index.getMaxHotBuckets() method behavior to return as String instead of int
    • SDK build is migrated from ant build tool to maven build tool
    • Dependencies directory for ant build is removed and maven dependencies are added using pom.xml
    • Dependencies are upgraded to its LTS version
    • Project structure is re-organized with respect to Maven

v1.6.5

Version 1.6.5 (2018-12-07) of the Splunk Enterprise SDK for Java contains the following change since the last release:

v1.6.5

Version 1.6.5 (2018-12-07) of the Splunk Enterprise SDK for Java contains the following change since the last release:

v1.6.4

Version 1.6.4 (2018-03-19) of the Splunk Enterprise SDK for Java contains the following changes since the last release:

v1.6.3

Version 1.6.3 (2018-03-19) of the Splunk Enterprise SDK for Java contains the following changes since the last release:

v1.6.2

Version 1.6.2 (2017-03-16) of the Splunk Enterprise SDK for Java contains the following changes since the last release:

  • Updated modular input shims to ensure Java processes are killed.

v1.6.1

Version 1.6.1 (2017-01-04) of the Splunk Enterprise SDK for Java contains the following changes since the last release:

  • Fixed authentication issues when the Splunk Set-Cookie header is not the first one.

v1.6.0

Here's what was new in version 1.6.0 (2016-11-30) of the Splunk Enterprise SDK for Java:

  • New features and APIs
    • Add support for retrieving Password entities scoped by realm and username.
    • Added getter methods for embed SavedSearch properties.
    • Added support for custom HttpURLConnection connection timeouts on HttpService.
    • Performance improvement to SavedSearch.dispatch().
    • Added getter methods to the Job class for retrieving long values (getEventCountLong, getResultCountLong, getScanCountLong).
    • Added setFieldList() to the JobExportArgs class.
    • Added support for the manualRebuilds DataModel setting.
  • Bug Fixes
    • Fixed SavedSearch.Dispatch() throwing a NullPointerException in some load-balanced search head clustering environments.
    • Fixed non-limit PivotFilter constructing the wrong JSON blob.
  • Minor changes
    • Added support for Travis CI.

v1.5.0

Here's what was new in version 1.5.0 (2015-08-10) of the SDK:

  • Added support for cookie-based authentication, for Splunk Enterprise 6.2.0 and later.
  • Fixed failure parsing XML responses (GitHub PR #76(Opens new window)).
  • Fixed bug where Job is never ready leading to infinite loops.
  • The SDK is now properly compiled with the Command class used in examples.

v1.4.0

Here's what was new in version 1.4.0 (2015-04-13) of the SDK:

  • Added support for Java 8. You can manually configure the Service(Opens new window) class to use TLSv1.2, TLSv1.1, or TLSv1 using the SSLSecurityProtocol enum. The default is still SSLv3.
  • Allow setting a custom SSLSocketFactory on the HTTPService(Opens new window) and Service(Opens new window) classes.
  • New ssl_protocols example: Tries to connect to Splunk Enterprise over HTTPS using different SSL/TLS protocols, then using a custom SSL and TLS SSLSocketFactory.

v1.3.2

Here's what was new in version 1.3.2 of the SDK:

v1.3.1

Here's what was new in version 1.3.1 of the SDK:

v1.3.0

Here's what was new in version 1.3.0 of the SDK:

  • Added support for data models and pivots.
  • Other bug fixes.

v1.2.2

Here's what was new in version 1.2.2 of the SDK:

v1.2.1

Here's what was new in version 1.2.1 of the SDK:

v1.2.0

Here's what was new in version 1.2.0 of the SDK:

v1.1.0

Here's what was new in version 1.1.0 of the SDK: