• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example setups for Elasticsearch, Kibana, Logstash, and Beats with docker-compose

Docker & Elastic

This repository contains a few examples how to run Elasticsearch, Kibana, Beats, and Logstash in Docker using the official images and binding them to the default ports. Tested with the latest version of the Docker daemon.

You connect to Kibana on http://localhost:5601 and Elasticsearch on http://localhost:9200.

Elasticsearch & Kibana

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

App Search

Change into the appsearch/ directory. This demo includes Elasticsearch, Kibana, and App Search.

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

App Search is running at http://localhost:3002.

Elasticsearch Logs

Change into the elasticsearch_logs/ directory. This demo includes Elasticsearch, Kibana, and Filebeat to collect the Elasticsearch logs with the Elastic Stock. The blog post Filebeat Modules with Docker & Kubernetes is built on top of this setup.

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

Full Stack

Change into the full_stack/ directory. This demo includes Elasticsearch, Kibana, Beats, Logstash, nginx, and MySQL and monitors all components with the Elastic Stack.

Note: You will need to increase the memory for all the containers to function correctly. Tested with 4GB instead of the default of 2GB.

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

Rolling Upgrade

Change into the rolling_upgrade/ directory. This demo shows a rolling upgrade from 6.x to 7.x. See the details in the readme.

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

Machine Learning

Change into the machine_learning/ directory. This demo includes Elasticsearch and Kibana as well as setting up the index patterns and dashboards for Filebeat. It assumes that you have a log.json file in the same directory, which will be imported automatically. Example entry:

{"source.name":"/home/ec2-user/data/production-3/prod3elasticlogs/_logs/access-logs228.log","beat":{"hostname":"ip-172-31-5-206","name":"ip-172-31-5-206","version":"5.4.0"},"@timestamp":"2017-02-28T17:14:26.963Z","read_timestamp":"2017-06-20T08:47:54.189Z","fileset":{"name":"access","module":"nginx"},"nginx":{"access":{"body_sent":{"bytes":"32898"},"url":"/static/img/wrapper-footer.png","geoip":{"continent_name":"North America","city_name":"Chicago","location":{"lat":42.0106,"lon":-87.6686},"region_name":"Illinois","country_iso_code":"US"},"response_code":"404","user_agent":{"device":"Other","os_name":"Other","os":"Other","name":"Other"},"http_version":"1.1","method":"GET","remote_ip":"213.222.148.205"}},"prospector":{"type":"log"}}

Note: You will need to increase the memory for all the containers to function correctly. Tested with 4GB instead of the default of 2GB.

  • Start: $ docker-compose up
  • Remove: $ docker-compose down -v

More Repositories

1

vagrant-elastic-stack

Giving the Elastic Stack a try in Vagrant
Shell
140
star
2

microservice-monitoring

Monitor your Spring Boot application with the Elastic Stack all around
Java
127
star
3

java-logging

How to log from a Java application to the Elastic Stack
Shell
52
star
4

silverstripe-smtp

Using PHPMailer in SilverStripe
PHP
26
star
5

auditbeat-in-action

Demo for Elastic's Auditbeat and SIEM
HCL
24
star
6

morphia-demo

Morphia (MongoDB) demo project
Java
19
star
7

php-monitoring

Monitoring a PHP application with the Elastic Stack
HCL
16
star
8

integration-test-demo

Demoing multiple approaches of integration tests with Elasticsearch
Java
14
star
9

postgresql-monitoring

Monitor PostgreSQL with the Elastic Stack
Shell
12
star
10

silverstripe-book

SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide
JavaScript
12
star
11

mongouk2011

MongoUK2011 presentation on Morphia
Java
12
star
12

scale-elasticsearch

Demo for scalable Elasticsearch setups with Frozen Indices, Index Lifecycle Management, and Rollups
HCL
11
star
13

cms-security

CMS Security Track Record (2010 & 2011)
10
star
14

elastic-kubernetes-workshop

HCL
9
star
15

mod_security-log

Fighting SQL injections and insufficient logging
PHP
7
star
16

silverstripe-widget_facebookfeed

Fetching your latest status messages from Facebook
PHP
7
star
17

php-logging

How to log from a PHP application to the Elastic Stack
PHP
6
star
18

silverstripe-nginx

SilverStripe Vagrant box — based on Ubuntu 14.04, nginx, and PHP-FPM
Shell
5
star
19

vagrant-ansible-aws

Vagrant box to configure AWS with Ansible
Shell
5
star
20

scale-elasticsearch-workshop

Workshop on how to scale Elasticsearch
HCL
4
star
21

elastic-cloud-domain-anonymous

Configure custom domains and anonymous Kibana access on Elastic Cloud
HCL
4
star
22

mongodb-monitoring

Monitor MongoDB with the Elastic Stack
Shell
3
star
23

ppc-test

Testing PPC on Ubuntu 14.04
Shell
2
star
24

CV

My CV in English and German
TeX
1
star
25

nosql-box

Vagrant file for NoSQL trainings
JavaScript
1
star
26

hazelcast-demo

Quick demo project for Hazelcast
Java
1
star
27

rest-training

Training on how to develop a REST application with Spring Boot
Shell
1
star