433 B
433 B
install packages
pip install Flask pip install flask_jwt_extended
run application
python app.py
call api
http://127.0.0.1:5000/get_logs?issue_type=Demo
sample response
{ "/var/log/db.log": "Last 50 lines of db.log...", "/var/log/db_error.log": "Last 30 lines of db_error.log...", "top": "Output of the top command..." }
run installation script
./install.sh
run application
./run.sh