{"id":21960085,"url":"https://github.com/mggwxyz/logs-analysis-project","last_synced_at":"2026-05-13T07:04:47.369Z","repository":{"id":256077106,"uuid":"129010680","full_name":"mggwxyz/logs-analysis-project","owner":"mggwxyz","description":"The logs analysis project for Udacity's Full Stack Web Developer Nanodegree","archived":false,"fork":false,"pushed_at":"2018-04-11T05:26:08.000Z","size":12789,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T00:15:58.740Z","etag":null,"topics":["api","logs","postgresql","psycopg2","python","sql"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mggwxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-11T00:26:30.000Z","updated_at":"2018-04-11T05:26:08.000Z","dependencies_parsed_at":"2024-09-08T21:35:48.793Z","dependency_job_id":"11dfce11-56da-4888-a27c-8a95ecf0decb","html_url":"https://github.com/mggwxyz/logs-analysis-project","commit_stats":null,"previous_names":["mggwxyz/logs-analysis-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mggwxyz%2Flogs-analysis-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mggwxyz%2Flogs-analysis-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mggwxyz%2Flogs-analysis-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mggwxyz%2Flogs-analysis-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mggwxyz","download_url":"https://codeload.github.com/mggwxyz/logs-analysis-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013989,"owners_count":20547181,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","logs","postgresql","psycopg2","python","sql"],"created_at":"2024-11-29T09:39:34.438Z","updated_at":"2026-05-13T07:04:47.324Z","avatar_url":"https://github.com/mggwxyz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logs Analysis Project\nA project where a database of logs is queried to analyze usage data for Udacity's Full Stack Web Developer Nanodegree\n\n## Table of Contents\n\n1. [Project Overview](#project-overview)\n1. [Setting up the project](#setting-up-the-project)\n1. [Running the project](#running-the-project)\n1. [Resource Links](#resource-links)\n\n## Project Overview\n\nThis project is a part of Udacity's Full Stack Web Developer Nanodegree. In this project, server-side code\n was written to query a database and analyze the table containing the logs. The main script will go throught the logs and returns\n the three most popular articles, the three most popular authors, and the days where the error rate for requests was above 1%.\n\n## Setting up the project\n\n\u003e In order to run this project, you must have [Vagrant](https://www.vagrantup.com/downloads.html) and [VirtualBox](https://www.virtualbox.org/wiki/Downloads) set up on your computer.\n\n```bash\n# Clone the git repository into a directory using a bash terminal\ngit clone https://github.com/mggwxyz/logs-analysis-project.git\n\n# Once the project has been setup, navigate into the project directory with `Vagrantfile`\ncd logs-analysis-project\n\n# Start the virtual machine\nvagrant up\n\n# Connect to the virtual machine\nvagrant ssh\n\n# Navigate to the folder where the guest/host files are shared\ncd /vagrant\n    \n# Unzip the news database data SQL script\nunzip ./data/newsdata.sql\n    \n# Apply SQL to Postgres to create news database\npsql -d news -f newsdata.sql\n```\n## Running the project\n\n```bash\n# Once the project has been setup, navigate into the project directory on your home computer\ncd logs-analysis-project\n\n# Then, run the following command to ssh into the vagrant box\nvagrant ssh\n\n# Navigate to the folder shared between the host and virtual machine\ncd /vagrant\n\n# Run `analyze-logs.py` and log analysis will be printed\npython3 ./scripts/analyze-logs.py\n```\n\nExample Output:\n```bash\nQ: What are the most popular three articles of all time?\n\n\"Candidate is jerk, alleges rival\" - 342102 views\n\"Bears love berries, alleges bear\" - 256365 views\n\"Bad things gone, say good people\" - 171762 views\n\nQ: Who are the most popular article authors of all time?\n\nUrsula La Multa - 507594 views\nRudolf von Treppenwitz - 423457 views\nAnonymous Contributor - 170098 views\n\nQ: On which days did more than 1% of requests lead to errors?\n\nJuly 17, 2016 - 2.3% errors\n```\n\n## Resource Links\n\n- [Udacity Full Stack Web Developer Nanodegree](https://www.udacity.com/course/full-stack-web-developer-nanodegree--nd004)\n- [Source Code](https://github.com/mggwxyz/logs-analysis-project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmggwxyz%2Flogs-analysis-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmggwxyz%2Flogs-analysis-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmggwxyz%2Flogs-analysis-project/lists"}