Skip to content
Report for Udacity FSWD Log Analyze Project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
queries
.gitignore
LICENSE
README.md
report.py
requirements.txt
sample.png
sample_output.txt

README.md

Logs Analysis

Report generator for Udacity FSWD Logs Analysis Project

Requirements

How to use this project

I assume that you have PostgreSQL and know how to restore the database.

Clone this repository

You will need the report.py and the requirements.txt.

$ git clone https://github.com/klassmann/udacity-logs-analysis.git

Install the dependencies

$ pip3 install -r requirements.txt

Usage

$ python3 report.py

Extra Information

SQL Queries

You will find the queries inside the queries/ folder.

  • queries\
    • top_articles.sql
    • top_authors.sql
    • days_with_errors.sql

Output

The program will output a report for the following questions:

  • Top Articles, the 3 most viewed articles
  • Top Authors, the most popular authors
  • Requests with errors, The days with more than 1% of error on page requests.

Example of output

Sample

You also find an example of output in sample_output.txt

My tests

This project was tested with:

  • python 3.4.2 and PostgreSQL 10.2 on MacOSX

License

You can't use this project as your project for Udacity, but you can use for study purposes if you want.

You can’t perform that action at this time.