GithubHelp home page GithubHelp logo

daladim / access-log-supervisor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 282 KB

A tool that checks for unexpected logins (IP or username based) from system logs

License: MIT License

Makefile 0.49% C++ 99.48% C 0.03%

access-log-supervisor's Introduction

access-log-supervisor

A tool that checks for unexpected logins (IP, username or time based) from system logs

How to use

Populate a configuration file with your rules: add the IPs, usernames and timespans that look normal or suspicious. See doc/config-example.yml for an example.
Note that timespans are ignored for the moment.

Run ./access-log-supervisor --config /your/config/file --type log-type /var/log/your-log
type is the shortName of the parser to use (e.g. apache, auth...)

See ./access-log-supervisor --help for the available commands, options, and their default values.

Input formats

Several log input formats are available.
See the src/parsers/ folder for a list of available parsers.

Output

Various output formats are available (plain text, HTML...).
See the src/serializers/ folder for a list of available serializers.
The output can be mailed in case the config files requires so.

How to build

Building this project requires these dependancies:

  • libcidr-dev
  • libsqlite3-dev
  • cmake (to build a static dependancy)

Do not forget to also fetch the submodules (git submodule init; git submodule update) so that you can build the required static dependancies.

Run make to build to app.
Run make test to build the test suite, which can be run with build/tests.

Running this project requires these dependancies:

  • libcidr
  • libsqlite3
  • (optionally) a working sendmail setup in case you want the program to be able to send you summary e-mails.

Developer documentation

A Doxygen documentation is available. Run make doc to generate it. Open it via doc/developer-documentation.html

Notes

This tool can look over-tested (if ever a concept of "too much testing" existed), since this began as an "exercise project" I made after following a course on software testing.

access-log-supervisor's People

Contributors

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