Skip to content

Centralized Logging with Spring Boot and Logback and Syslog-ng and Elasticsearch

Notifications You must be signed in to change notification settings

dilaverdemirel/logback-syslogng-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Centralized Logging with Spring Boot and Logback and Syslog-ng and Elasticsearch

This repo demonstrate to creating a centralized logging system with Spring Boot and Logback and Syslog-ng and Elasticsearch.

spring-boot-syslog-ng-elasticsearch

You can run the elasticsearch and syslog-ng server via below commands for test;

  • Run Services
cd docker
docker-compose up
  • Run Demo Application

And then you can start the spring boot application via

./mvnw spring-boot:run
  • See The Logs

And then you should send a request for create a log;

http://localhost:8080/?name=dilaver%20demirel

And you can see logs on elasticsearch;

http://localhost:9200/_cat/indices
http://localhost:9200/syslog-ng-[yyy].[mm].[dd]/_search?size=50

That's it ;)

About

Centralized Logging with Spring Boot and Logback and Syslog-ng and Elasticsearch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published