Skip to content

lavish205/logaggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logaggregator

Ships logs from clients to centeralized server.

Project Setup

============================

Installing Requirements

$ git clone git@github.com:lavish205/logaggregator.git
$ cd logaggregator
$ pip install -r requirements.txt

Client Side

  • Edit config.json and add all the service and log file path that should be shipped to server Ex:
{
  "client_name": "<client name to distinguish among different server>",
  "client_ip": "<ip of the client>",
  "services":[
    {
      "name": "<service name>",
      "file": "<path to log file>"
    }
  ]

}
  • Set Enviornment variable "SERVER_IP" as http://server_ip:8888/logs/
  • Run client.py

$ python client.py

Server Side

Endpoints

========================

1. Real Time log streaming:

/logs/

Query Params: * service: filter logs according to given service value * query: filter logs through given text

2. System Statistics Information (CPU, Mem, etc):

/stats/

Access panel at : http://127.0.0.1:8888/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published