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
addClusterMasterURIsToHostsinHttpServiceclass to update list of Valid Hosts with Cluster Master Hosts. -
Added instance method
getClusterMastersinServiceclass 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_FACTORYinstance on changingvalidateCertificatesflag.
Version 1.9.3
Minor Changes
-
Re-fetch logic for
instancetypeandversionfields if not set withinServiceinstance 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
Argsoption 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
Serviceclass. -
SSL certificate validation (default implementation) added.
-
Boolean flag is introduced to skip/validate certificate. Use
HttpService.setValidateCertificatesto 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-installreplaced withapps/local. -
Breaking change:
HttpService.useTLSflag removed. UseHttpService.setSslSecurityProtocolto 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
PrintWritermethods to avoid escape characters. -
Hostparameter 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:
- Fixed a bug causing the push back buffer to be full when exporting data in XML (GitHub PR #125(Opens new window)).
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:
- Fixed a bug causing the push back buffer to be full when exporting data in XML (GitHub PR #125(Opens new window)).
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:
- Fixed bug in modinput Windows shims that caused Splunk Enterprise to fail to restart (GitHub PR #120(Opens new window)).
- Fixed bug with data model endpoint on Splunk Enterprise 7 and later (GitHub PR #117(Opens new window)).
- Fixed bug with
invalid Index.submit()forming an invalid REST API path for namespaced services (GitHub PR #118(Opens new window)). - Fixed bug with
Value.toDate(string value)not being thread safe (GitHub PR #109(Opens new window)).
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:
- Added the
updatedproperty on all Resource objects (GitHub PR #104(Opens new window)).
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-Cookieheader 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
Passwordentities scoped by realm and username. - Added getter methods for embed
SavedSearchproperties. - Added support for custom
HttpURLConnectionconnection timeouts onHttpService. - Performance improvement to
SavedSearch.dispatch(). - Added getter methods to the
Jobclass for retrievinglongvalues (getEventCountLong,getResultCountLong,getScanCountLong). - Added
setFieldList()to theJobExportArgsclass. - Added support for the
manualRebuildsDataModelsetting.
- Add support for retrieving
- Bug Fixes
- Fixed
SavedSearch.Dispatch()throwing aNullPointerExceptionin some load-balanced search head clustering environments. - Fixed non-limit
PivotFilterconstructing the wrong JSON blob.
- Fixed
- 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
Commandclass 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 theSSLSecurityProtocolenum. The default is still SSLv3. - Allow setting a custom
SSLSocketFactoryon theHTTPService(Opens new window) andService(Opens new window) classes. - New
ssl_protocolsexample: 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:
- Performance improvements:
Job(Opens new window) objects will only be refreshed byisReady()(Opens new window) if theJob(Opens new window) is not ready. This minimizes HTTP requests when getting properties of theJob(Opens new window).- The
Service(Opens new window) class now has agetJob()(Opens new window) method that is used to retrieve aJob(Opens new window) object by its sid String. This is better than callingservice.getJobs().get(sid)(Opens new window), which has the overhead of getting allJob(Opens new window) objects from Splunk Enterprise in order to access a singleJob(Opens new window).
- New examples:
endpoint_instantiation: shows how to manually instantiate any Splunk Enterprise REST API endpoint.get_job: shows how to get aJob(Opens new window) by its sid using the newService.getJob()(Opens new window) method.
- Minor changes:
- The
Entity(Opens new window) andEntityCollection(Opens new window) classes each have a public constructor, so any Splunk Enterprise endpoint can be manually instantiated. - The
FiredAlert(Opens new window) class now has agetParsedExpirationTime()(Opens new window) method that returns aDateobject. - Some test have been modified to work with the latest release of Splunk Enterprise (6.2.x).
- The
v1.3.1
Here's what was new in version 1.3.1 of the SDK:
- Removed deprecated functions from
DistributedConfiguration(Opens new window) class. - Fixed a resource leak in the
Command.load(Opens new window) function. - Oneshot searches, called from
Index.upload(Opens new window), can now be passed search arguments.
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:
- Hot fix to
ResultsReaderXml(Opens new window) to work with Woodstox XML parsing library.
v1.2.1
Here's what was new in version 1.2.1 of the SDK:
- The Splunk Enterprise SDK for Java is now fully compatible with Splunk Enterprise 6.0.
- Other bug fixes. See
CHANGELOG.md(Opens new window) for details.
v1.2.0
Here's what was new in version 1.2.0 of the SDK:
- Support for creating modular inputs programmatically. For more information, see How to create modular inputs.
v1.1.0
Here's what was new in version 1.1.0 of the SDK:
-
Multiple result sets for export searches
New results readers let you read streams from export searches, which contain multiple results sets. For examples, see To work with results from an export search. For API documentation, see the
MultiResultsReaderXml(Opens new window) andMultiResultsReaderJson(Opens new window) classes. -
Segmentation
Now, by default, segmentation is turned off in the results from search jobs—this means results are returned as raw text rather than XML. You can change this setting using the
setSegmentationmethod in theJobEventsArgs(Opens new window) andJobExportArgs(Opens new window) classes.We've also added a
getSegmentedRawmethod to theEvent(Opens new window) class that returns raw data from events to preserve segmentation information.