bensialih / bonafide

api endpoint to receive sent logs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bonafide

basic udp application created to receive and consolidate logs.

motivation

Trying to create a lightwight and specialized version of fail2ban that consumes a minimal amount of CPU and RAM.

TODO

  • create api endpoint to receive log entries

  • create endpoint that receives both single and batch logs

  • pass api properties as env values

  • Look to materlize for insperation on how data can be calculated with the lowewst latency.

  • test bottlenecks

  • benchmark

setup

  • git clone repo
  • look at settings.toml and put in your own credentials
  • create a .env file with postgres database credentials. This is loaded when docker compose is ran.
  • docker-compose up in a separate termnial
  • cargo run
  • send udp packets to endpoint.

About

api endpoint to receive sent logs


Languages

Language:Rust 93.6%Language:Python 6.4%