Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
/ rlog Public archive

A simple event logging service written in Python.

License

Notifications You must be signed in to change notification settings

reformo/rlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log Service

Scrutinizer Code Quality Build Status

A simple event logging service written in Python that can be used in mobile or web applications to report any kind of internal and/or API request/response errors or other events.

This service needs Elasticsearch as data store.

Installation

Edit the shell script mapping.sh according to your Elasticsearch configuration.

$ pip3 install -r pip.install
chmod u+xwr mappings.sh
./mapping.sh

Usage

$ python3 ./logservice.py --es_server="127.0.0.1" --port=8000

Upstart Service

Create a configuration file /etc/init/logservice.conf with following codes

description "Log Service"
author "[email protected]"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
setuid nobody
setgid nogroup

exec python3.4 /home/logservice/service/logservice.py --es_server="127.0.0.1" --port=8000

Service management

sudo service logservice start|stop|restart

API

For API details, use Postman and import Rlog.json.postman_collection.

About

A simple event logging service written in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published