Skip to content

defgsus/logmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-view for system logs

Linux/Debian style system logs are parsed to a database and can then be displayed conveniently in the browser with filtering.

deployment

virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt

./manage.py migrate
./manage.py createsuperuser
./manage.py runserver

The list of logs to parse is located in logmonitor/settings.py as LOG_FILES and can be adjusted to your needs.

To get log-files into the database call:

./manage.py logview_update

Cronjobs are supported via django-kronos. To install the cronjob checkout logview/cron.py to adjust scheduled times and then run:

./manage.py installtasks