Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

blacktop/docker-logstash-alpine

Repository files navigation

logstash-logo

docker-logstash-alpine

CircleCI License Docker Stars Docker Pulls Docker Image

Alpine Linux based Logstash Docker Image

Dependencies

Image Tags

REPOSITORY          TAG                 SIZE
blacktop/logstash   latest              478MB
blacktop/logstash   7.10                478MB
blacktop/logstash   7.9                 378MB
blacktop/logstash   7.8                 385MB
blacktop/logstash   7.7                 384MB
blacktop/logstash   7.6                 387MB
blacktop/logstash   7.5                 388MB
blacktop/logstash   7.4                 394MB
blacktop/logstash   7.3                 392MB
blacktop/logstash   7.2                 390MB
blacktop/logstash   7.1                 390MB
blacktop/logstash   7.0                 384MB
blacktop/logstash   6.8                 393MB
blacktop/logstash   6.7                 393MB
blacktop/logstash   6.6                 389MB
blacktop/logstash   6.5                 378MB
blacktop/logstash   6.4                 349MB
blacktop/logstash   6.3                 335MB
blacktop/logstash   6.2                 337MB
blacktop/logstash   6.1                 300MB
blacktop/logstash   6.0                 285MB
blacktop/logstash   5.6                 278MB
blacktop/logstash   5.5                 263MB
blacktop/logstash   x-pack              384MB
blacktop/logstash   5.4                 263MB
blacktop/logstash   5.3                 289MB
blacktop/logstash   5.2                 289MB
blacktop/logstash   5.1                 289MB
blacktop/logstash   5.0                 312.2MB
blacktop/logstash   2.4                 390MB
blacktop/logstash   2.3                 255.8MB
blacktop/logstash   1.5                 253.5MB

Getting Started

Start Logstash with configuration file

$ docker run -d -v "$PWD":/config-dir blacktop/logstash logstash -f /config-dir/logstash.conf

Start Logstash with commandline configuration. Download metricbeat

$ docker run -d --name elastic -p 9200:9200 blacktop/elasticsearch
$ docker run -d --name kibana --link elastic:elasticsearch -p 5601:5601 blacktop/kibana
$ docker run -d --name logstash -p 5044:5044 --link elastic:elasticsearch blacktop/logstash \
  logstash -e 'input {
                  beats {
                    port => 5044
                  }
               }

               output {
                 elasticsearch {
                   hosts => "elasticsearch:9200"
                   manage_template => false
                   index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
                   document_type => "%{[@metadata][type]}"
                 }
               }'
$ ./scripts/import_dashboards
$ ./metricbeat -e -c metricbeat.yml

Navigate to http://localhost:5601

Click on metricbeat-* and ⭐ Set as default index

index

Click on Dashboard -> Open -> Metricbeat-cpu

kibana

Documentation

Issues

Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to file an issue

Credits

Heavily (if not entirely) influenced by https://github.com/docker-library/logstash

License

MIT Copyright (c) 2016-2020 blacktop