Skip to content

Docker-compose stack for Splunk and CollectD metrics

License

Notifications You must be signed in to change notification settings

jwiebalk/splunk-collectd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Splunk + CollectD

Based on these Docker images:

Requirements

Host setup

  1. Install Docker version 1.10.0+
  2. Install Docker Compose version 1.6.0+
  3. Clone this repository

Usage

Initial Setup

  1. Use uuidgen to generate a Splunk compatible HEC token
export SPLUNK_TOKEN=`uuidgen | tr '[:upper:]' '[:lower:]'`
  1. Add this token to the SPLUNK_TOKEN entry in the .env
  2. Configure a password for Splunk in the .env
  3. Add the SPLUNK_TOKEN to the inputs.conf using sed -i "s/{{SPLUNK_TOKEN}}/$SPLUNK_TOKEN/g" splunk/splunk_httpinput/inputs.conf

Bringing up the stack

  1. Run docker-compose build first to inject the environment variables from the .env and the updated splunk/splunk_httpinput/inputs.conf

  2. Start the stack in detached mode:

$ docker-compose up -d

Ports exposed

By default, the stack exposes the following ports:

  • 5000: Syslog TCP input
  • 8088: Splunk write_http Listener
  • 8000: Splunk Frontend
  • 25826: collectD input

About

Docker-compose stack for Splunk and CollectD metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published