Ships logs from clients to centeralized server.
============================
$ git clone git@github.com:lavish205/logaggregator.git
$ cd logaggregator
$ pip install -r requirements.txt
- 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
-
Setup ElasticSearch
-
Run ElasticSearch
$ elasticsearch/bin/elasticsearch -d # running as daemon
-
Run
app.py
$ python app.py
========================
/logs/
Query Params: * service: filter logs according to given service value * query: filter logs through given text
/stats/
Access panel at : http://127.0.0.1:8888/