2024-02-23 15:29:26 +05:00

23 lines
433 B
Markdown

# 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