https://github.com/redis-field-engineering/redisconnect-splunk-hec-source-demo
Splunk Java Logging using Logback
https://github.com/redis-field-engineering/redisconnect-splunk-hec-source-demo
Last synced: 2 months ago
JSON representation
Splunk Java Logging using Logback
- Host: GitHub
- URL: https://github.com/redis-field-engineering/redisconnect-splunk-hec-source-demo
- Owner: redis-field-engineering
- Created: 2022-11-14T05:23:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-24T01:17:01.000Z (over 2 years ago)
- Last Synced: 2025-01-25T12:09:11.724Z (4 months ago)
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redisconnect-splunk-hec-source-demo
Sample client (source) to send log messages (Java logging using logback) to Splunk HTTP Event Collector (HEC)## Download
Download the [latest release](https://github.com/redis-field-engineering/redisconnect-splunk-hec-source-demo/releases) and un-tar (e.g. tar -xvf redisconnect-splunk-hec-source-1.0-SNAPSHOT.tar.gz) the redisconnect-splunk-hec-source-1.0-SNAPSHOT.tar.gz archive.
## Usage
```bash
java -jar \
-Dlogback.configurationFile=config/logback.xml \
-Dsplunk.url= \
-Dsplunk.token= \
-Dsplunk.index= \
-Dsplunk.sourcetype=logback \
-Dsplunk.type=json|raw \
-Diteration=1 (default, No. of iterations to run) \
-Dinterval=1000 (default, Sleep interval between each iteration in ms) \
redisconnect-splunk-hec-source-1.0-SNAPSHOT.jar
```
e.g.
```bash
redisconnect-splunk-hec-source$ java -jar \
-Dlogback.configurationFile=config/logback.xml \
-Dsplunk.url=http://localhost:8088 \
-Dsplunk.token=01259fdc-c155-40dc-a418-978082846d23 \
-Dsplunk.index=hec \
-Dsplunk.sourcetype=logback \
-Dsplunk.type=json \
-Diteration=1 \
redisconnect-splunk-hec-source-1.0-SNAPSHOT.jar
```