Skip to content

ozayduman/ecs-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project shows how to use logback-ecs-encoder for elastic stack logging

I'm using The Spotify Maven Docker plugin to buid and deploy docker images

1. BUILD THE PROJECT

To build docker image of this project run the following commands:

mvn package
mvn dockerfile:build

2. RUN THE CONTAINER OF THE PROJECT

docker run -p 8080:8080 ozay/ecs-logging:0.0.1-SNAPSHOT

3. CHECK THE LOG FILES

docker ps 

docker exec -it c4a39a346bcb ash
cd var/log/ecs-sample-service

you will see two log files ecs-sample-service.json and _ecs-sample-service.log_with the following content:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published