This a program written in python3, It checks the database created by the newsdata.sql in the PostgreSQL database manager to extract usefull information, this database contains information about articles and their authors, and a table of containing a log file information of a web server. The program extracts the following informations:
- Most popular three articles of all time.
- Most popular authors of all time.
- Days when error requests are bigger than 1%.
You need the following prerequisites:
- python3: On debian, you can install it by:
sudo apt-get install python3
- psycopg2 On debian, you can install it by:
sudo apt-get install python3-psycopg2
- postgresql: On debian, you can install it by:
sudo apt-get install postgresql
If you have the dependencies, this program doesn't require any installation process.
In the same folder as log_analysis.py, execute the following.
python3 log_analysis.py
- TOUATI OSEMA - Initial work - touatiosema