Ship better logs. 📦
Zege — a simple, flexible, fast ⚡ event logging service for observability, debugging, and analytics written in Rust.
JSON in → Insights out.
- Docker installed
- A running PostgreSQL instance
- A configuration file on the host machine
Create a configuration file named config.yaml:
verbose: all
feature:
jwt_secret: default-secret
database:
name: zege03
host: <HOST_IP>
username: postgres
password: postgressudo docker run -d \
--name zege \
--restart unless-stopped \
-p 3432:3432 \
-v /absolute/path/to/config.yaml:/app/config.yaml \
masamtz/zege:latesthttp://localhost:3432http://localhost:3432/api/v1/e/i?bucket_key=zgb019b8f8.....This API accepts an event payload in JSON format. Each field is optional unless specified. Events are used for logging, observability, and analytics.
Content-Type: application/json
Method: POST
{
"timestamp": "2025-09-12T10:00:00Z",
"service": "app1",
"event_name": "test1",
"message": "Something went wrong",
"version": "1.2.3",
"environment": "production",
"host": "server1",
"meta": {
"jwt": ""
},
"data": { "custom_field": "value" }
}| Field | Type | Description |
|---|---|---|
timestamp |
string (RFC3339) | When the event occurred. Required. |
service |
string | version of service . Required. |
version |
string | environment of service . Required. |
message |
string | Human-readable description of the event. |
host |
string | Host/machine name/id. |
data |
object | Additional custom metadata. |