Coder Social home page Coder Social logo

spark-logs-analysis's Introduction

Logs analysis with Spark

This repository hosts a sample project to practice data wrangling and modeling using Apache Spark.

The main objective of this project is to protect a web server namely Link from bot attacks by using a mixed of domain knowledge and Machine Learning techniques.

The project structure is detailed below. To reproduce my work, you can follow the steps detailed below.

├── data
│   ├── processed						# Directory for processed files
│   │   ├── cleaned_logs					## Parsed logs
│   │   │   ├── *.parquet
│   │   ├── featurized_logs					## Engineered features
│   │   │   ├── *.parquet
│   │   └── labeled_df						## labeld features
│   │       ├── *.parquet
│   └── raw							# Directory for raw logs file
│       ├── access.log						## Deleted to save storage space
│       └── parsing_stats.csv					## Checkin parsing stats
├── docs
│   └── figs
│       ├── data_pipeline.png
├── notebooks
│   ├── Logs analysis - exploratory data analysis.ipynb
│   ├── Logs analysis - Features Engineering.ipynb
│   ├── Logs analysis - Machine Learning.ipynb
│   └── Logs analysis - preprocessing.ipynb
├── README.md
└── requirements.txt

To run the entire project: Follow these steps:

1 - install pyspark following this link: https://medium.com/@GalarnykMichael/install-spark-on-ubuntu-pyspark-231c45677de0

2- Then upgrade pip $ sudo pip install --upgrade pip

3- Install conda $ pip install conda

4 - Create a conda env with requirements.txt file $ conda --name myenv --file requirements.txt

5 -activate conda env: $ conda activate myenv

6 -Finally, start jupyter with Spark Support: $ snotebook

spark-logs-analysis's People

Contributors

chammami 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.