Coder Social home page Coder Social logo

ss_analysis's Introduction

Shadowsocks Statistics

Build Status

This is a python script for analyzing log generated by shadowsocks. It lets you know where the traffic is going.

Installation

No installation is needed. Just run everything from the project directory.

Usage

The log file is usually located at /var/log/shadowsocks.log on the machine where the server is running. For analysis, you must obtain a copy and put it under your working directory.

A few examples on how to use the script:

Get server time based analysis with resolution of hour(-g h) in verbose mode (-v)

python analyze.py get_stats_by_time -g h -v

Get server time based analysis with resolution of day(-g D) in verbose mode (-v)

python analyze.py get_stats_by_time -g D -v

Find out what domain names are more closely related in time. This will produce a pdf file in the same directory.

python similarity_analyze.py

Get overview of client connection activities.

python analyze.py show_ips

Find client IP based statistics, wildcard is supported.

python analyze.py get_stats_by_ip --client_ip *.*.*.*

For more information, run

python analyze.py -h

Dependencies

This software requres a graph visualization library called graph-tool, which can be found at https://graph-tool.skewed.de/ In this folder, install_dep_ubuntu is used to install the graph-tool dependency on the Ubuntu system. Matplotlib is needed for visualization. You may need to install any packages according to system information.

ss_analysis's People

Contributors

victordion avatar

Stargazers

 avatar

Watchers

 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.