Skip to content

Project for Udacity Full Stack Web Developer Nanodegree

Notifications You must be signed in to change notification settings

psaviott/Logs-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Logs Analysis

This project work with data that could have come from a real-world web application, with fields representing information that a web server would record, such as HTTP status codes and URL paths. The web server and the reporting tool both connect to the same database, allowing information to flow from the web server into the report. Exploring a large database with over a million rows we building and refine complex queries and use them to draw business conclusions from data.

For this project three questions will be ansewred:

  1. What are the most popular three articles of all time?
  2. Who are the most popular article authors of all time?
  3. On which days did more than 1% of requests lead to errors?

Getting Started

This project use a webserver with PostgreSQL and Python3. You can run this in a real server or in a virtual machine. If you need help to install and setup a virtual machine with VirtualBox and Vagrant, check the reference link bellow on Resources.

Prerequisites

Installing and Running

  1. Clone this git repositoriy:

      $ git clone https://github.com/psaviott/Logs-Analysis.git'
    
  2. Download the newsdata file.

  3. Setup database

  • Create a database named news
      user=> CREATE DATABASE news;
    
  • Load newsdata.sql into local database:
      $ psql -d news -f newsdata.sql
    
  1. Runnig the program with:
  $ python3 log-analysis.py

you can see a return like this:

Built With

Authors

Acknowledgments

About

Project for Udacity Full Stack Web Developer Nanodegree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages