Database Access
- Install PostgreSQL.
- In Log Analysis Project directory, unzip newsdata.zip
- In terminal, change directory to root folder of Log Analysis.
- Run "psql -d news -f newsdata.sql" to load data.
- To access data, run "psql -d news"
Running Log Analysis script
- In terminal, change directory to root folder of Log Analysis.
- Run "python logsanalysis.py"
Results
- top_three: This function will return the top 3 article titles in descending order and views.
- author_popularity: This function will return the top authors in descending order and the the views of articles written by the author.
- errors: This function will return request leads errors over 1%. ('404 NOT FOUND')/('404 NOT FOUND + 200 OK') grouped by day.