Twitch logging service inspired by justlog
Go to file
boring_nick 70b8c37de7 add docs 2023-06-10 14:39:06 +03:00
.github/workflows revert tags change 2023-06-09 23:36:46 +03:00
docs add docs 2023-06-10 14:39:06 +03:00
src migrator fixes 2023-06-10 11:06:14 +03:00
web@e55c146b15 bump web 2023-05-26 23:49:50 +03:00
.dockerignore feat: use custom spa, embed frontend into binary, frontend in docker 2022-10-21 09:22:48 +03:00
.gitignore add docs 2023-06-10 14:39:06 +03:00
.gitmodules update frontend 2023-03-11 19:31:56 +02:00
Cargo.lock bump dependencies 2023-06-09 21:55:09 +03:00
Cargo.toml more speed 2023-06-08 21:26:06 +03:00
Dockerfile optimize migrator 2023-06-09 09:04:59 +03:00
README.md add docs 2023-06-10 14:39:06 +03:00
config.example.json add docs 2023-06-10 14:39:06 +03:00

README.md

Rustlog

Description

Rustlog is a Twitch logging service based on justlog. It provides the same web UI and API, but it utilizes Clickhouse for storage instead of text files.

Installation

Create a config.json file (see config.example.json)

Docker

version: "3.8"
  
services:
  clickhouse:
    image: clickhouse/clickhouse-server:latest
    container_name: clickhouse
    volumes:
      - "./ch-data:/var/lib/clickhouse:rw"
    environment:
      CLICKHOUSE_DB: "rustlog"
    restart: unless-stopped
        
  rustlog:
    image: ghcr.io/boring-nick/rustlog:master
    container_name: rustlog
    ports:
      - 8025:8025 
    volumes:
      - "./config.json:/config.json"
    depends_on: 
      - clickhouse
    restart: unless-stopped

From source

  • Set up Clickhouse
  • cargo install --locked --git https://github.com/boring-nick/rustlog
  • You can now run the rustlog binary

Advantages over justlog

  • Significantly better storage efficiency (2x+ improvement) thanks to not duplicating log files and better compression (using ZSTD in Clickhouse)
  • Blazing fast log queries with response streaming and a highly performant IRC parser

Migrating from justlog

See MIGRATION.md