lixie

command module
v0.0.0-...-ba3d6ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

README

Lixie

codecov Go Report Card

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 implemented 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 do not have a rule for it, you are not aware of it happening either (and how often it happens).

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 error messages if log retrieval fails

  • add better overlapping rule detection

    • with large number of rules, it is really hard to see where things are (and I apparently reversed the rule priority at some point without realizing it or perhaps I am just failing at understanding it now)

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?

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)

Perhaps some day?

  • support victoria logs / opensearch / quickwit as log source

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL