Coder Social home page Coder Social logo

elk's Introduction

Elasticsearch, Logstash, Kibana (ELK)

Configured to use redis as a message broker for logstash, based on sebp/elk.

Running

When running the image ensure you expose the appropriate ports (5601, 9200) and set the REDIS_HOST environment variable. Here's an example run command:

sudo docker run -it --name elk \
		 -p 5601:5601 -p 9200:9200 \
		 -e REDIS_HOST=some-redis-host \
		 codenow-elk

Ports

When run as a container the image exposes the following ports:

  • 5601 - Kibana web interface
  • 9200 - Elastic search interface

Important Files

  • Dockerfile - Dockerfile to build the ELK image
  • 10-input.conf - Default logstash input configuration
  • 20-filter.conf - Default logstash filters configuration
  • 30-output.conf - Default logstash output configuration
  • elasticsearch.yml - Elastic search configuration
  • start.sh - Runs all services and tails the elasticsearch logs.

Environment Variables

Environment variables are not supported by default for logstash configurations however we have added limited support for them by modifying the start.sh. If you want to introduce a new variable to a configuration perform the following steps:

  1. Add the placeholder for the variable in the file. It will look like this: {{MY_VARIABLE}}
  2. Modify the start.sh script to add an in-place sed to replace the placeholder with the environment variable: sed -i "s/{{MY_VARIABLE}}/$MY_VARIABLE/g" /etc/logstash/conf.d/01-logstash.conf.

Currently we support the following environment variables in the logstash configuration script:

  • REDIS_HOST - Hostname for the redis message broker.
  • REDIS_PORT - Port for the redis message broker.

elk's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rsandor

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.