Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
e5a2e53
Updated the readme.md
apruneda Jun 7, 2018
a6d7e9c
Modify the support statement in README as requested.
skylasam Sep 13, 2018
38a7696
update version to 1.6.5
ljiang1 Nov 26, 2018
308dc65
Merge pull request #129 from splunk/release/1.6.5
ljiang1 Nov 27, 2018
ea33de2
Remove specification of Java SE
PKing70 Feb 13, 2019
330ff19
Feedback re Java https://jira.splunk.com/browse/DVPL-7494
PKing70 Mar 28, 2019
4e472f1
Update README.md
PKing70 Mar 28, 2019
3ea4a81
Merge pull request #132 from PKing70/patch-1
tdhellmann Mar 29, 2019
cbe3777
Remove Splunkdev Google group link
PKing70 Apr 22, 2019
bc71b07
Merge pull request #135 from PKing70/master
shakeelmohamed Apr 23, 2019
a8cbe6a
Update CONTRIBUTING.md
PKing70 Mar 24, 2020
0d04e0d
Update README.md
PKing70 Mar 24, 2020
ba97870
Update CONTRIBUTING.md
PKing70 Mar 24, 2020
10908a6
Merge pull request #143 from splunk/pking-scp-16043
PKing70 Mar 24, 2020
7c2d48c
edits
apruneda Sep 16, 2020
55119c5
edits
apruneda Sep 16, 2020
eacc7af
edits
apruneda Sep 16, 2020
7c73381
edits
apruneda Sep 16, 2020
8103b6a
edits
apruneda Sep 16, 2020
d82bdf4
edits
apruneda Sep 16, 2020
3a8df97
edits
apruneda Sep 16, 2020
7490a7f
edits
apruneda Sep 16, 2020
3806df3
edits
apruneda Sep 16, 2020
662ad13
edits
apruneda Sep 16, 2020
1d9d390
edits
apruneda Sep 16, 2020
7083b90
edits
apruneda Sep 16, 2020
07fb5fd
edits
apruneda Sep 16, 2020
5861754
edits
apruneda Sep 16, 2020
769b0ad
edits
apruneda Sep 16, 2020
52fa63f
edits
apruneda Sep 16, 2020
902d23a
Updates
apruneda Sep 17, 2020
8cbae2f
edits
apruneda Sep 17, 2020
cb421da
edits
apruneda Sep 17, 2020
5490d37
Updates
apruneda Sep 17, 2020
f322404
Update
apruneda Sep 17, 2020
b74803d
Updates
apruneda Sep 17, 2020
4376951
update
apruneda Sep 17, 2020
ffe45f8
Merge pull request #152 from splunk/readmeupdates
apruneda Sep 17, 2020
7c91e86
Release Notes
bparmar-splunk Jul 26, 2021
d5c492e
Release Notes
bparmar-splunk Jul 26, 2021
2ffbd5f
ChangeLog file modified.
bparmar-splunk Jul 27, 2021
a7a3f5a
Merge branch 'release/1.7.0' of https://github.com/splunk/splunk-sdk-…
bparmar-splunk Jul 27, 2021
63e65d6
Run CI against Splunk 7.2
Oct 30, 2018
13df2e2
fix invalid crontab in test
Oct 30, 2018
c851feb
fix javadoc error
Oct 31, 2018
3b65a3c
Fix datamodel test causing crash
Dec 5, 2018
6b53fb3
add sleep to uploadtest so splunkd.log will exist in CI
Dec 6, 2018
24c759f
Increase UploadTest timeout to 8s
Dec 6, 2018
1c50b56
Revise README
PKing70 Apr 11, 2019
c1cb68b
fix uploadtest
May 13, 2019
ce2cac6
Ensure index tests restart before exiting
May 13, 2019
943a8a2
index tests should restart regardlesss of requirement to
May 13, 2019
e138922
use better format for temp files in UploadTest
May 13, 2019
376156b
restart when needed for delete index tests
May 13, 2019
ec9049c
Update upload test
May 14, 2019
e9a7686
Conflicts mergedUpdate CI configuration & README for new test environ…
May 14, 2019
59915bf
Update Java version parsing method
May 14, 2019
d35b2ee
Conflicts mergedInstall sdk-app-collection via docker-compose; add st…
amysutedja May 26, 2020
1bcb4c0
Updated HttpService
ashah-splunk Jun 14, 2021
fd65704
Update HttpService.java
ashah-splunk Jun 14, 2021
5c3318f
Project strcuture refactored as below:
bparmar-splunk Jun 9, 2021
ca4753a
Test specific file is changed to be compatible with maven.
bparmar-splunk Jun 9, 2021
00bd0b8
Local deployment change implemented.
bparmar-splunk Jun 10, 2021
fae17d0
Maven deployed plugin is moved to Parent pom instead of splunk sub-mo…
bparmar-splunk Jun 10, 2021
107c42e
Changes as per David's comments are added.
bparmar-splunk Jun 14, 2021
6cd4b7a
Disable deprecated endpoint test cases
akaila-splunk Jun 21, 2021
296acbc
Clean-up Javadoc generation
bparmar-splunk Jun 23, 2021
df9a72f
Ignored test cases due to change in REST API endpoint apps/appinstall
akaila-splunk Jun 24, 2021
434e6cf
Changed filename for Linux os
akaila-splunk Jun 25, 2021
ae9a11c
Update HttpService.java
ashah-splunk Jul 1, 2021
0011dd0
Github Actions - Test file added
bparmar-splunk Jun 29, 2021
335c368
Test YAML modified
bparmar-splunk Jun 29, 2021
5bdedd6
Location of docker-compose file changed.
bparmar-splunk Jun 29, 2021
6da9dc6
Docker compose command omitted.
bparmar-splunk Jun 29, 2021
a19a215
SplunkRC file added
bparmar-splunk Jun 29, 2021
c5a6146
Environment variable (TCP & UDP Port) for Test command added.
bparmar-splunk Jun 29, 2021
124635d
Github actions test.yml with splunk docker version 8.0
bparmar-splunk Jun 30, 2021
dfc44df
Testing test.yml with splunk docker instance v8.0 and latest.
bparmar-splunk Jun 30, 2021
4a64915
Checking test.yml with splunk docker instance latest only
bparmar-splunk Jun 30, 2021
c873b62
Github Actions Test and release actions updated
bparmar-splunk Jul 1, 2021
03bad07
Github actions release file updated with prerelease type
bparmar-splunk Jul 2, 2021
83f51ff
POM modified for Github release action.
bparmar-splunk Jul 2, 2021
efdbdca
Skipping test in Github release actions.
bparmar-splunk Jul 2, 2021
2361374
Examples pom modified.
bparmar-splunk Jul 2, 2021
3210a22
Tests are skipped and distribution management added.
bparmar-splunk Jul 2, 2021
dde418a
BETA Release is reverted back to v1.6.5
bparmar-splunk Jul 2, 2021
94121a0
CREDITS.md file has been added along with their respective licenses.
rmaheshwari-splunk Jul 21, 2021
2a27e05
Release Notes
bparmar-splunk Jul 26, 2021
19245b8
ChangeLog file modified.
bparmar-splunk Jul 27, 2021
8150511
Merge branch 'release/1.7.0' of https://github.com/splunk/splunk-sdk-…
bparmar-splunk Jul 27, 2021
3a54e7b
ChangeLog modified
bparmar-splunk Jul 27, 2021
5d4ec68
POM files refactored.
bparmar-splunk Jul 27, 2021
ad95755
ChangeLog.md modified with all changes
bparmar-splunk Jul 29, 2021
87368b5
Merge pull request #163 from splunk/release/1.7.0
bparmar-splunk Jul 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
edits
  • Loading branch information
apruneda committed Sep 16, 2020
commit eacc7affc8b1bd2ff10bed498596cb0b64b5058a
125 changes: 61 additions & 64 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,102 +21,101 @@ The Splunk SDK for Java contains library code and examples that show how to prog

Here's what you need to get going with the Splunk SDK for Java.

#### Splunk
* Splunk

If you haven't already installed Splunk, download it [here](http://www.splunk.com/download).
For more information, see the Splunk Enterprise [Installation Manual](https://docs.splunk.com/Documentation/Splunk/latest/Installation).
If you haven't already installed Splunk, download it [here](http://www.splunk.com/download).
For more information, see the Splunk Enterprise [Installation Manual](https://docs.splunk.com/Documentation/Splunk/latest/Installation).

#### Splunk SDK for Java
* Splunk SDK for Java

Get the Splunk SDK for Java JAR from the [Splunk Developer Portal](https://dev.splunk.com/enterprise/downloads/) or clone the repository from [GitHub](https://github.com/splunk/splunk-sdk-java) if you want to contribute to the SDK. To use Maven, see "Use Maven" "below.
Get the JAR from the [Splunk Developer Portal](https://dev.splunk.com/enterprise/downloads/) or clone the repository from [GitHub](https://github.com/splunk/splunk-sdk-java) if you want to contribute to the SDK. To use Maven, see "Use Maven" "below.

#### Java and Ant
* Java and Ant

You'll need Java version 6 or higher, from [OpenJDK](https://openjdk.java.net) or [Oracle](https://www.oracle.com/technetwork/java).
You'll need:

You'll also need Ant, which you can install from the [Apache website](http://ant.apache.org/bindownload.cgi).
* Java version 6 or higher, from [OpenJDK](https://openjdk.java.net) or [Oracle](https://www.oracle.com/technetwork/java).
* Ant, which you can install from the [Apache website](http://ant.apache.org/bindownload.cgi).

The Splunk SDK for Java is compatible with Java 8. Be aware that **Java 8 disables Secure Sockets Layer version 3 (SSLv3) by default**, so you will need to use Transport Layer Security (TLS) instead. To see an example of how to do this, see the [ssl_protocols](https://github.com/splunk/splunk-sdk-java/blob/master/examples/com/splunk/examples/ssl_protocols/Pro...) example. Alternatively, you can re-enable SSLv3 in Java settings, but this is not recommended.
The Splunk SDK for Java is compatible with Java 8. Be aware that **Java 8 disables Secure Sockets Layer version 3 (SSLv3) by default**, so you will need to use Transport Layer Security (TLS) instead. To see an example of how to do this, see the [ssl_protocols](https://github.com/splunk/splunk-sdk-java/blob/master/examples/com/splunk/examples/ssl_protocols/Pro...) example. Alternatively, you can re-enable SSLv3 in Java settings, but this is not recommended.

If you are using Windows, you'll need to make sure the following system
variables are created and set:
If you are using Windows, you'll need to make sure the following system
variables are created and set:

* **ANT_HOME** should be set to the location where Ant is installed.
* **ANT_HOME** should be set to the location where Ant is installed.
* **JAVA_HOME** should be set to the directory where the JDK is installed.
* **PATH** should include the path to the **%ANT_HOME%\bin** directory.

* **JAVA_HOME** should be set to the directory where the JDK is installed.
For installation instructions, see:
* [Java Platform Installation](http://www.oracle.com/technetwork/java/javase/index-137561.html)
* [Installing Apache Ant](http://ant.apache.org/manual/install.html)

* **PATH** should include the path to the **%ANT_HOME%\bin** directory.
* Maven (optional)

For full installation instructions, you can find more information here:
You can use [Apache Maven](http://maven.apache.org/) to build your Splunk SDK for Java projects with a few updates to your project's **pom.xml** file. You can retrieve all necessary dependencies and build your project.

* [Java Platform Installation](http://www.oracle.com/technetwork/java/javase/index-137561.html)
To add the Splunk SDK for Java JAR file as a dependency:

* [Installing Apache Ant](http://ant.apache.org/manual/install.html)
1. Add the repository to your project's **pom.xml** file:

#### Use Maven
```xml
<repositories>
...
<repository>
<id>splunk-artifactory</id>
<name>Splunk Releases</name>
<url>http://splunk.jfrog.io/splunk/ext-releases-local</url>
</repository>
</repositories>
```

You can use [Apache Maven](http://maven.apache.org/) to build your Splunk SDK for Java projects with a few updates to your project's **pom.xml** file. You can retrieve all necessary dependencies and build your project.
2. Add the dependency to the **pom.xml** file and update the version number to match the version of the Splunk SDK for Java that you are using:

To add the Splunk SDK for Java JAR file as a dependency:
```xml
<dependencies>
...
<dependency>
<groupId>com.splunk</groupId>
<artifactId>splunk</artifactId>
<version>1.6.5.0</version>
</dependency>
</dependencies>
```

1. Add the repository to your project's **pom.xml** file:
> **Note**: You can make similar changes to use [Ivy](http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html) or [Gradle](http://www.gradle.org/) as well.

```xml
<repositories>
...
<repository>
<id>splunk-artifactory</id>
<name>Splunk Releases</name>
<url>http://splunk.jfrog.io/splunk/ext-releases-local</url>
</repository>
</repositories>
```
### Build the SDK and documentation

2. Add the dependency to the **pom.xml** file and update the version number to match the version of the Splunk SDK for Java that you are using:
To build the SDK, open a command prompt in the **/splunk-sdk-java** directory and enter:

```xml
<dependencies>
...
<dependency>
<groupId>com.splunk</groupId>
<artifactId>splunk</artifactId>
<version>1.6.5.0</version>
</dependency>
</dependencies>
```
ant

> **Note**: You can make similar changes to use [Ivy](http://ant.apache.org/ivy/history/latest-milestone/tutorial/start.html) or [Gradle](http://www.gradle.org/) as well.
or

### Build the SDK and documentation
ant dist

To build the SDK, open a command prompt in the **/splunk-sdk-java** directory and enter:
This command builds all of the CLASS and JAR files. If you just want to build the CLASS files, enter:

ant
ant build

or
To remove all build artifacts from the repository, enter:

ant dist
ant clean

This command builds all of the CLASS and JAR files. If you just want to build the CLASS files, enter:
To build the documentation for the SDK, enter:

ant build

To remove all build artifacts from the repository, enter:

ant clean

To build the documentation for the SDK, enter:

ant javadoc
ant javadoc

### Examples and unit tests

The Splunk SDK for Java includes several examples and unit tests to run at the command line.

#### Convenience file (.splunkrc)
#### Create a .splunkrc convenience file

To connect to Splunk Enterprise, many of the SDK examples and unit tests take command-line arguments that specify values for the host, port, and login credentials for Splunk Enterprise. For convenience during development, you can store these arguments as key-value pairs in a text file named **.splunkrc**. Then, the SDK examples and unit tests use the values from the **.splunkrc** file when you don't specify them.

>**Note**: Storing login credentials in the **.splunkrc** file is only for convenience during development. This file isn't part of the Splunk platform and shouldn't be used for storing user credentials for production. And, if you're at all concerned about the security of your credentials, enter them at the command line rather than saving them in this file.

To use this convenience file, create a text file with the following format:

# Splunk host (default: localhost)
Expand All @@ -142,14 +141,12 @@ Save the file as **.splunkrc** in the current user's home directory.

C:\Users\currentusername\.splunkrc

You might get errors in Windows when you try to name the file because ".splunkrc" appears to be a nameless file with an extension. You can use the command line to create this file by going to the **C:\Users\<currentusername** directory and entering the following command:
You might get errors in Windows when you try to name the file because ".splunkrc" appears to be a nameless file with an extension. You can use the command line to create this file by going to the **C:\Users\<currentusername>** directory and entering the following command:

Notepad.exe .splunkrc

Click **Yes**, then continue creating the file.

**Note**: Storing login credentials in the **.splunkrc** file is only for convenience during development. This file isn't part of the Splunk platform and shouldn't be used for storing user credentials for production. And, if you're at all concerned about the security of your credentials, enter them at the command line rather than saving them in this file.


#### Run examples

Expand Down Expand Up @@ -224,7 +221,7 @@ To view the coverage report, open

### Changelog

The CHANGELOG.md file in the root of this repository contains a description of changes for each version of the SDK. For the latest version, see the [CHANGELOG.md](https://github.com/splunk/splunk-sdk-java/blob/master/CHANGELOG.md) on GitHub.
The [CHANGELOG](CHANGELOG.md) contains a description of changes for each version of the SDK. For the latest version, see the [CHANGELOG.md](https://github.com/splunk/splunk-sdk-java/blob/master/CHANGELOG.md) on GitHub.

### Branches

Expand Down Expand Up @@ -254,7 +251,7 @@ Stay connected with other developers building on the Splunk platform.
* [Twitter](https://twitter.com/splunkdev)


### How to contribute
### Contributions

If you would like to contribute to the SDK, see [Contributions to Splunk](https://www.splunk.com/en_us/form/contributions.html).

Expand Down