GithubHelp home page GithubHelp logo

logs-analysis's Introduction

Logs-Analysis : a project for Full Stack developer nano degere for reporting logs stored into a database

Why we report anyway ? We report to get the summary from the logs , to get a more information about whats going on on our site , what type of errors or what type of articles that the visiters admires...etc

Requirements

Installation : this will not provide tips to install vagrant and virtualbox after starting the Vagrant and Virtualbox open cmd as administrator(*) and type : vagrant up ssh 127.0.0.1 2222 username : vagrant password : vagrant

after signing in :
- install PostgersSQl:            [ sudo apt-get install postgres ]
- Run psql and install db:        [ psql -d news -f newsdata.sql ]
Please Note before running the script please create the views in order to the program to run

For creating the author view to answer question 2:

        create or replace view mauthors as select author,count(log.path)
            as num from articles, log where articles.slug=
            substring(path from 10 for 100) group by author order
            by num DESC

For creatin error view answering question 3:

        create or replace view err as select to_char(time,'Mon DD, YYYY')
            as date , count(status) from log where status!='200 OK'
            group by date order by date ASC;

        create or replace view ok as select to_char(time,'Mon DD, YYYY')
            as date , count(status) from log
            group by date order by date ASC;

- Run Script using :              [python nemo.py]

Files: - database_setup.py * - nemo.py * - README.md

NOTE : Thank you

logs-analysis's People

Contributors

deyanemo avatar

Watchers

 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.