GithubHelp home page GithubHelp logo

seal0112 / udacity-log-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4 KB

This project is a Udacity nanodegree project about simple CLI reporting tool based on tables in a PostgreSQL database.

Python 100.00%

udacity-log-analysis's Introduction

Udacity Logs Analysis Project

This project is a simple CLI reporting tool based on tables in a PostgreSQL database.

The tool runs three reports for answers to the following questions:

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

Quick start

  1. I recommend the user use a virtual machine to ensure they are using the same environment that this project was developed on, running on your computer. You can download Vagrant and VirtualBox to install and manage your virtual machine.
  2. Then you must have the PostgreSQL newsdata.sql database running from the FSND virtual machine. Download the newsdata.sql provided by Udacity here. Unzip the file in order to extract newsdata.sql. This file should be inside the Vagrant folder.
  3. From the 'vagrant' directory, run vagrant up.
  4. SSH to the virtual machine with vagrant ssh.
  5. Connect to the psql database with psql -d news -f newsdata.sql
  6. Than we can be able to run the reporting tool as:
python log_analysis.py

Example output

What are the most popular three articles of all time?
    "Candidate is jerk, alleges rival" — 338647 views
    "Bears love berries, alleges bear" — 253801 views
    "Bad things gone, say good people" — 170098 views
Who are the most popular article authors of all time?
    Ursula La Multa — 507594 views
    Rudolf von Treppenwitz — 423457 views
    Anonymous Contributor — 170098 views
    Markoff Chaney — 84557 views
On which days did more than 1% of requests lead to errors?
    July 17, 2016 — 2.3% errors

udacity-log-analysis's People

Contributors

seal0112 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.