Skip to content

sutrs/docker-elk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker ELK - ElasticSearch, Logstash, and Kibana

Tutorial

[Docker ELK : ElasticSearch, Logstash, and Kibana]

Docker compose There are couple of ways to install the ELK stack with Docker. We can either pull ELK's individual images and run the containers separately or use Docker Compose to build the images and run the containers.

In this post, we'll run docker-compose

First, clone the repo:

$ git clone https://github.com/sutrs/docker-elk.git

Then, run "docker-compose":

$ cd docker-elk

$ docker-compose up

Check ELK containers $ docker ps $ lsof -PiTCP -sTCP:LISTEN

By default, the stack exposes the following ports:

5000: Logstash will listen for any TCP input on port 5000

9200: Elasticsearch for HTTP REST API image

9300: Elasticsearch TCP nodes communication

5601: Kibana web UI image

Shipping data to ELK Stack Kibana has its own API for saved objects, including Index Patterns. The following examples are for an Index Pattern with an ID of logstash-*.

$ curl -XPOST -D- 'http://localhost:5601/api/saved_objects/index-pattern'
-H 'Content-Type: application/json'
-H 'kbn-version: 6.5.1'
-d '{"attributes":{"title":"logstash-*","timeFieldName":"@timestamp"}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors