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

https://github.com/readytalk/docker-splunkforwarder

Simple splunk forwarder utilizing runtime templates (reefer) and docker
https://github.com/readytalk/docker-splunkforwarder

Last synced: 10 months ago
JSON representation

Simple splunk forwarder utilizing runtime templates (reefer) and docker

Awesome Lists containing this project

README

          

# docker-splunkforwarder
Simple splunk forwarder utilizing runtime templates (reefer) to configure the Splunk agent. It's currently somewhat limited in that it will only log one file glob pattern and send it to a single index. We could extend the idea to support multiple file globs sending to multiple indexes.

## Required Env variables
* SPLUNK_SERVER - Server FQDN/IP to send logs.
* SPLUNK_SERVER_PORT - Port on the above server.
* SPLUNK_LOGFILE_PATTERN - Glob pattern (or regex but this is not tested) for files to monitor.
* SPLUNK_INDEX - Splunk index to send log entries to.

## Example run:
```
docker run -d \
-e SPLUNK_SERVER=splunk.local.com \
-e SPLUNK_SERVER_PORT=9500 \
-e 'SPLUNK_LOGFILE_PATTERN=/var/log/*.log' \
-e SPLUNK_INDEX=prod_idx \
readytalk/splunkforwarder
```