Giter Club home page Giter Club logo

splunkdockersink's Introduction

SplunkDockerSink

A Splunk Test Environment with Everything 3 SH 3 IDX 1 Deployer 1 CM 1 DeploymentServer 1HF 4UF

  1. You will need docker and docker-compose installed on the system with the docker runtime active "sudo systemctl start docker"

  2. Create a directory for the project "mkdir SplunkDocker"

  3. Add the default.yml and docker-compose.yml to the directory

  4. Finally run "sudo docker-compose up"

This should fill your screen with the log of it downloading the newest Splunk versions. Assinging them Splunk roles (SH,CM,IDX,UF,HF, and etc.) along with creating a network for them to communicat through. (This seems to be broken on MAC when last tested around 2021. As always Linux is better!!)

You can run docker-compose as dettached to not see the logs or lose a terminal to it. I like the logs and just open another terminal to do anything else needed.

I do get failures and retries at the end of the log. I haven't fully researched the issue but they don't seem to affect how I use this for testing.

  1. Run "sudo docker ps" to check the status of all containers (healthy vs unhealthy) once healthy they should be good to go. This can take some time as a lot of things are happening in the background. While testing in ESXi I have a minimal Ubuntu Server running 8 CPUs with 16 GBs of RAM and it took around 20min for a clean bill of health. Sometimes Ubuntu did fail, Arch does the best so far and only took 7min to start with no failures. (EndevorOS if you don't want to install Arch).

With "sudo docker ps" you can find a Search Head (sh1) use the IP of the machine running the container then find the port mapped to 8000. This snippet below is from my current Arch container. As you can see you would want to use port 49167 this time.

(651a97a749b6 splunk/splunk:latest "/sbin/entrypoint.sh…" 7 minutes ago Up 7 minutes (healthy) 8065/tcp, 8088/tcp, 8191/tcp, 9887/tcp, 9997/tcp, 0.0.0.0:49167->8000/tcp, :::49167->8000/tcp, 0.0.0.0:49156->8089/tcp, :::49156->8089/tcp sh1)

Login should be username: admin password:changeme unless you changed this in the config.

Have fun and make sure you break something while you are there!!!!!!

--------------------Helpful Links-----------------------------------------

Splunk Docker Examples https://splunk.github.io/docker-splunk/EXAMPLES.html

Splunk Docker Test Scenarios https://github.com/splunk/docker-splunk/tree/develop/test_scenarios

splunkdockersink's People

Contributors

breedocaster avatar

Stargazers

Luke Netto avatar

Watchers

 avatar

Forkers

lnetto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.