Coder Social home page Coder Social logo

elk's Introduction

About

Elastic does not provide a dockerized solution with Logstash integrated. This repository is based on Elastic's dockerized setup and Logstash has been integrated into a compose file. All communication between containers are performed using TLS with self-signed certificates. Validation of certificates is disabled.

If you choose to use this solution, follow the steps below and add your filters to Logstash, or eventually use Auditbeat.

How to install

Before proceeding, ensure that vm.max_map_count is set to a sufficient value, otherwise ELK might not be able to start.

sysctl -w vm.max_map_count=262144
echo "vm.max_map_count=262144" >> /etc/sysctl.conf

Step 1 Define versions and instances.

cp ~/elk/env.example ~/elk/.env
cp ~/elk/setup/instances.example.yml ~/elk/instances.yml

Step 2 Create certificates

sudo docker-compose -f ~/elk/create-certs.yml run --rm create_certs

Step 3 Start containers

sudo docker-compose -f ~/elk/elastic-docker-tls.yml up -d

Step 4 Generate passwords

sudo docker exec es01 /bin/bash -c "bin/elasticsearch-setup-passwords auto --batch --url https://es01:9200" | tee -a passwords.txt

Step 5 Update .env with elastic username and password. Credentials for Kibana and Logstash in the elastic-docker-tls.yml and logstash/pipeline/9-output.conf are set automatically from .env file.

Step 6 Restart containers. Kibana might need 5-10 minutes to be ready at https://SERVERIP:5601 depending on your hardware.

sudo docker-compose stop && sudo docker-compose -f ~/elk/elastic-docker-tls.yml up -d

elk's People

Contributors

kimsyversen 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.