dilaverdemirel / logback-syslogng-elasticsearch

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 90.2%Language:Dockerfile 9.8%