Skip to content

Demo of ELK Stack with a Springboot app pushing logs to it. Uses Docker-Compose.

License

Notifications You must be signed in to change notification settings

BINPIPE/elk-stack-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch - Logstash - Kibana

Building the ELK

$ git clone https://github.com/BINPIPE/elk-stack-demo.git
$ cd elk-stack-demo

This demo assumes you know how to run Docker. Run the below command before starting up the ELK cluster-

sysctl -w vm.max_map_count=262144

Building the Containers

Nothing special if you already have Docker installed:

$ docker-compose build 

Running Containers with the docker-compose

To run these containers:

$ docker-compose up -d

Consuming Rest Service

To consume SpringBoot app user service:

$ curl http://localhost:8080/user/{userid}
Eg. http://localhost:8080/user/90015

Normally, errors/warnings are logged, so a try a Bad Request status=400 url like http://localhost:8080/user/not-an-userid

To view generated logs on Kibana UI: http://localhost:5601

About

Demo of ELK Stack with a Springboot app pushing logs to it. Uses Docker-Compose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published