An open API service indexing awesome lists of open source software.

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

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
```