Coder Social home page Coder Social logo

docker-elk-iot's Introduction

Docker ELK Stack

Credit to deviantony/docker-elk for a great starting point.

Setup

Run this script:

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo/docker.repo
sudo yum install -y docker-ce python-pip git
sudo systemctl enable docker
sudo systemctl start docker
sudo pip install -U docker-compose
git clone https://github.com/rhefner1/docker-elk-iot.git
sudo sysctl -w vm.max_map_count=262144

Usage

Start the ELK stack using docker-compose:

$ docker-compose up -d

Now that the stack is running, you'll want to inject logs in it. Try running scripts/send_message.py which publishes the message to RabbitMQ. Logstash then receives the message and drops it into Elasticsearch, where it can be viewed with Kibana.

You can access Kibana UI by hitting http://localhost:5601 with a web browser.

By default, the stack exposes the following ports:

  • 5000: Logstash TCP input.
  • 9200: Elasticsearch HTTP
  • 9300: Elasticsearch TCP transport
  • 5601: Kibana
  • 5672: RabbitMQ

Restarting Services

  • If you edit any of the configuration files or mess something up, you'll need to restart the services by following these steps:
    • Run sudo docker-compose stop
    • Run sudo docker-compose build
    • Run sudo docker-compose up -d
  • If you want to erase all Elasticsearch data, run this command while services are stopped: sudo rm -rf /es-data

docker-elk-iot's People

Contributors

rhefner1 avatar

Watchers

 avatar  avatar

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.