GithubHelp home page GithubHelp logo

fingon / lixie Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 158 KB

Small infra analysis tool. This is mostly personal tool but I am making it open source from the start.

License: GNU General Public License v3.0

Makefile 1.40% Go 65.75% Python 10.73% HTML 22.11%

lixie's Introduction

Lixie

Lixie is infrastructure awareness tool. The name does not really matter and it also does not mean anything (I am not going to use 'dog ate my homework' excuse but instead use the modern excuse - Mistral came up with it).

The goal of Lixie is to be single binary, zero external dependency tool. Currently there are two planned modes:

  • configuration generator for tools ( mainly vector )

  • standalone web UI for viewing and categorizing logs ( and other events of interest later on )

Log filtering - high level idea

Most of the modern logs are, to put it bluntly, spam. Typical SIEM approaches rely on matching specific log rules of interest, and ignoring the rest. However, this leaves the 'unknown unknown' problem on the table, as if you don't have rule for it, you are not aware of it happening either.

Lixie's approach is inverse - everything is worth looking at, at least once. Lixie provides a way of cultivating ruleset about which lines are interesting, which are not, and showing the logs based on the produced filtering criteria. If integrated with Vector, it can also enrich the logs with the filtering results, and subsequently Vector pipeline can e.g. drop spam, or redirect it to something with shorter retention period.

Functionality

  • Lixie can pull logs from Loki, categorize them, and show them.

  • Lixie has rule editor (and human readable dump format) for the log classification rules

Demo

Here is an example. Note that only toplevel links work - anything beyond that gets redirected to your own local Lixie instance which probably does not exist.

Planned TODO (There is no guarantee these actually get implemented)

Features

  • add graph(s) to homepage

    • log lines over time?
    • pie chart about spam vs ham?
  • add error messages if log retrieval fails

Big features

  • Optimize rule evaluation (it could be also used when generating rules for Vector); identify the stuff with most cardinality, match by that first (and order the rules based on that too; it doesn't hurt to make it user visible)

    • idea: # of field matchers / # of regexp field matchers = score (and then do iteratively by fields)

    • As an option, could also parallelize it?

  • Rethink how rules are stored; just big json file can get bit unwieldy?

  • summary log rules page

    • show by e.g. source, and some nice statistics about hits?

Robustness

  • Implement more unit tests

  • Properly vendor static resources (bootstrap CSS, htmx JS)

  • identify better logging pattern than printf :p

Prettiness

  • favicon

  • style the pages properly (right now just basic Bootstrap and one or two ugly bits remain)

lixie's People

Contributors

fingon avatar dependabot[bot] 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.