/QMFRacklog

Retriever the logs from all server.

Primary LanguagePython

log_retriever

Search/Retriever the logs from all server.

Setup

Set up all the remote server with ssh key login ssh-keygen -t rsa ssh-copy-id user@target use the hoping_copy_id.sh to send the copy id using proxycommand.

Development

$ export FLASK_APP=app.py (app.py is the default app, so it's not required to set this command.) $ export FLASK_ENV=development

Unittest

$ python3 -m unittest

run the server

$ python -m flask run

Deployment with Apache wsgi on CentOS.

$ yum install python3-flask $ yum install python3-mod_wsgi

ln -s the conf file to apache conf.d folder ln -s (abs_path)/QMFRacklog.conf /etc/httpd/conf.d/