Skip to content

VanKuang/distribution-log-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distribution-log-collector

Currently distribute service is popular, but will introduce one problem which is hard to locate log message under different services/machines. This project is aim to solve this problem, centralized log messsages between different services/machines.

Solution 1: Base on logback

Logback already support send log message via JMS/Socket/SMTP.
However JMS is a bit heavy, and socket is using oio.

Netty base on nio with high performance and easy to use, obvious Netty is a good choice for such usage.

Client side:

  1. Implement logback appender
  2. Send log message to server via Netty

Server side:

  1. Received message from clients
  2. Persistent log message with well format
  3. Provide service api to GUI, like REST or dynamic streaming

Solution 2: Monitoring log

Create a individual service to monitoring the log paths, and send via Netty to the server side.

About

Collect log from distribute service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages