reloopsh/be-logs

By reloopsh

Updated 3 days ago

Email event logging service for Reloop — real-time delivery tracking powered by ClickHouse.

Image
Web servers
Monitoring & observability
Web analytics
0

2.1K

reloopsh/be-logs repository overview

📊 Reloop — Logs Service

The Logs Service is the email event logging and analytics microservice in the Reloop platform. It ingests, stores, and queries high-volume email delivery events — such as sends, opens, clicks, bounces, and complaints — powered by ClickHouse for fast analytical queries at scale. Includes automated log cleanup via a built-in cron job.

Built on Bun + Elysia, backed by ClickHouse and Redis.


🚀 Features

  • Event Ingestion — Capture email delivery events (send, open, click, bounce, complaint, unsubscribe)
  • ClickHouse Backend — High-performance analytical storage for billions of events
  • Query API — Filter and paginate logs by org, domain, campaign, and event type
  • Auto Cleanup — Built-in cron job to purge old log data on a schedule
  • Organization-scoped — All logs are isolated per org
  • API Key Auth — Secured via x-api-key header
  • OpenAPI Docs — Auto-generated spec at /api/logs/openapi
  • NATS Bus — Subscribes to delivery events from the Reloop message bus

ResourceLink
📚 Documentationreloop.sh/docs/setup/backend/logs
🌐 Production APIapi.reloop.sh/api/logs
📜 OpenAPI Specreloop.sh/api/logs/openapi
🐙 Source Codegithub.com/reloop-labs/reloop
💬 Discorddiscord.gg/reloop
🐦 Twitter / X@reloophq
🆘 Supportreloop.sh/support

⚡ Quick Start

docker pull reloopsh/be-logs:latest

docker run -d \
  -p 8016:8016 \
  -e REDIS_URL=redis://:password@host:6379 \
  -e NATS_URL=nats://host:4222 \
  -e BASE_URL=https://your-domain.com \
  -e CLICKHOUSE_URL=http://clickhouse-host:8123 \
  -e CLICKHOUSE_USER=default \
  -e CLICKHOUSE_PASSWORD=your-password \
  -e CLICKHOUSE_DATABASE=reloop \
  reloopsh/be-logs:latest

The service will be available at http://localhost:8016/api/logs.


🔧 Environment Variables

VariableDefaultDescription
PORT8016Port the server listens on
REDIS_URLRedis connection string
NATS_URLNATS messaging server URL
BASE_URLPublic base URL of the platform
CLICKHOUSE_URLhttp://localhost:8123ClickHouse HTTP endpoint
CLICKHOUSE_USERdefaultClickHouse username
CLICKHOUSE_PASSWORDClickHouse password
CLICKHOUSE_DATABASEreloopClickHouse database name
NODE_ENVproductionRuntime environment

🛠 Tech Stack


📦 Part of the Reloop Platform

This image is one of several microservices that make up the Reloop backend. See the full list at hub.docker.com/u/reloopsh.

Tag summary

Content type

Image

Digest

sha256:8c816760f

Size

277.7 MB

Last updated

3 days ago

docker pull reloopsh/be-logs