Code Monkey home page Code Monkey logo

elk-stack-v5-xpack's Introduction

Build Status

Join the chat at https://gitter.im/elk-stack-v5-xpack/Lobby

ELK stack sample setup on static IPs


X-Pack


Repozitory structure overview

  • set of README files:
  • README - this document
  • README_api_usage - basic handling of ELK via curl
  • README_mapping - ELK mapping example
  • README_query_cheatsheet - examples of query language
  • README_watcher - how to setup simple alerting
  • README_workshop - labs + basic terms
  • README_geoip - info about GeoIP coordinates handling
  • README_s3 - experimental backup to S3 bucket simulated via Riak CS
  • Terraform - just for workshop, spin several servers with preinstalled docker, readme in directory

ELK Stack components

Fluentd

  • 1x Fluentd NEED TO BE RUN FIRST see how to run this stack
  • containers output logger (back to ELK)
  • index platform*

ElasticSearch

  • 3x server (data/client/master role) - you can start just one server (elasticsearchdataone) if you don't have HW resources or limit resources via docker CPU/Mem qutoas, see comments in common-services.yml
  • x-pack installed
  • exposed ports:
  • 920[1-3] / 930[1-3]

Kibana

Logstash

  • used for easy sample data upload
    • exposed ports:
    • 5000 - json filter
    • 5001 - raw, no filters
  • you can use .raw field for not_analyzed data
  • index: logstash*

Riak CS

  • used for AWS S3 simulation
    • exposed ports:
    • 8080 - API
  • not logged via Fluentd to ELK (API key created during start)

Mattermost

  • Mattermost server - running outside demo stack as a simple container with open access and webhook created
  • You can easily spin your own instances via docker compose
  • https://github.com/mattermost/mattermost-docker
  • IP of server is setup in .env

Stack handling

Start stack

  • Start stack (do not use docker-compose up as there are some prerequisities to start stack)

  • This short script will prepare temporary data volumes for ES servers and start fluend container first

  • Download git repo:

$ git clone https://github.com/VAdamec/elk-stack-v5-xpack 
$ cd elk-stack-v5-xpack
$ ./_start

Stop stack

  • just stop containers, for removing network/artefact use docker-copose command
$ ./_stop

Used tools

You can use logstash or kibana containers (all is mounted as /code/) or install on your system (OSX/Lnx).

  • netcat - for logstash feedings
  • jq - for pretty outputs
  • curl - for shell work with Elastic
  • curator

Not covered

elk-stack-v5-xpack's People

Contributors

vadamec avatar

Watchers

James Cloos avatar  avatar

Forkers

gitter-badger

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.