Giter VIP home page Giter VIP logo

logcheck's Introduction

LOGCHECK: Faster Way To Analyze Logs

Logcheck

What is Logcheck ?

Logcheck is python based tool developed to analyze the log files easily with the feature of saving results to CSV files.

Why Logcheck ?

There are a lot of tools already available in the market but most of them are paid and hard to set up, but logcheck is simple to use and it also shows results of log files having a size in MBs in a very short period of time.

How to setup:

Note: Only works on Python3.7+

Flag Description Example
Apache Access Log
-useragent useragents in apache access log file python3 logcheck.py -f log_filename apache -useragent
-ip IPs in apache access log file python3 logcheck.py -f log_filename apache -ip
-uid User Ids in apache access log file python3 logcheck.py -f log_filename apache -uid
-date Date of requests done in apache access log file python3 logcheck.py -f log_filename apache -date
-content-size Content size in apache access log file python3 logcheck.py -f log_filename apache -content-size
-status-code Status Code of requests made in apache access log file python3 logcheck.py -f log_filename apache -status-code
-referer Url referers python3 logcheck.py -f log_filename apache -referer
Multiple Commands in one line ( Apache Access Log )
IP, User Id, date, content-size python3 logcheck.py -f log_filename apache -ip -uid -content-size -date
Dpkg Log
-half Half Installed Pacakges python3 logcheck.py -f log_filename dpkg -half
-date Date when packages are installed python3 logcheck.py -f log_filename dpkg -date
-time Time when packages are installed python3 logcheck.py -f log_filename dpkg -time
Multiple Commands in one line ( Dpkg Log )
half installed packages, date and time python3 logcheck.py -f log_filename dpkg -half -date -time
OUTPUT
-o Give name of the output csv file python3 logcheck.py -f log_filename -o results dpkg -half
-save save the results to csv file python3 logcheck.py -f log_filename -save dpkg -half

Outputs:

python3 logcheck.py apache -h

Apache Log

python3 logcheck.py dpkg -h

Dpkg Log

python3 logcheck.py apache -ip -uid -status-code -content-size

Apache Log

python3 logcheck.py -save dpkg -date -time

dpkg Log

Credits:

TableStream : Used to create table for results Philippe Lagadec

logcheck's People

Contributors

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