Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 2.3 KB

README.md

File metadata and controls

92 lines (61 loc) · 2.3 KB

Elasticsearch (ELK) stack on Docker

The main goal for creating this stack was to provide the environment of ELK(Elasticsearch, Logstash and Kibana) for different types of POCs. 🙂

In the end result you will get a beautiful kibana dashboard like this:-

We are using the official image from Elastic:-

This compose setup will setup these things for you:-

  • Elasticsearch
  • Kibana
  • Logstash
  • Apache

Requirements

Overview

├── apache         ---> Dockerfile and confiuration file for apache
├── elasticsearch  ---> Dockerfile and configuration file for elasticsearch
├── img            ---> For storing image and screenshots
├── kibana         ---> Dockerfile and configuration file for kibana
└── logstash       ---> Dockerfile and configuration file for logstash
    └── conf.d     ---> Logstash configuration for beats, filter and outputs

This setup will expose these ports:-

  • 9200: Elasticsearch HTTP endpoint
  • 9300: Elasticsearch TCP endpoint
  • 5601: Kibana UI
  • 5044: Logstash beats input

Usage

Set required environment variables

export ELK_VERSION=7.3.1

Building Images

docker-compose build

Bringing Up

docker-compose up -d

Clean Up

docker-compose down -v

After this steps, now you can go and login into kibana and visualize your logs:-

  • Kibana Url:- http://<your_ip>:5601
  • Username:- elastic
  • Password:- elastic

To Do

  • Add some dashboards for Apache
  • Create a canvas for logs

Kibana Dashboards

You can import the kibana dashboard as well which is here

Here are some awesome screenshots you will get after importing the dashboard.