Getting Started
Open-source log management. Privacy-first. Self-hosted or cloud.
Deployment Options
Zero setup required. Start logging in seconds.
Self-Hosted Quick Start
Prerequisites
- Docker Engine - Container runtime
- Docker Compose - Multi-container orchestration
That's it! No Node.js, no build tools, no database setup. Uses pre-built images from Docker Hub.
Installation (2 minutes)
# 1. Create project directory
mkdir logward && cd logward
# 2. Download configuration files
curl -O https://raw.githubusercontent.com/logward-dev/logward/main/docker/docker-compose.yml
curl -O https://raw.githubusercontent.com/logward-dev/logward/main/.env.example
mv .env.example .env
# 3. Configure secure passwords (IMPORTANT!)
nano .env
# Change: DB_PASSWORD, REDIS_PASSWORD, API_KEY_SECRET
# 4. Start LogWard
docker compose up -d
# 5. Access the dashboard
# Open http://localhost:3000 in your browser- Pulls pre-built images from Docker Hub
- Starts PostgreSQL + TimescaleDB (database)
- Starts Redis (queue & cache)
- Runs database migrations
- Starts backend API & worker
- Starts frontend dashboard
Required Configuration
Edit your .env file and set secure values for these variables:
| Variable | Description |
|---|---|
| DB_PASSWORD | PostgreSQL database password |
| REDIS_PASSWORD | Redis password |
| API_KEY_SECRET | Encryption key (32+ characters) |
| PUBLIC_API_URL | Backend URL (default: http://localhost:8080) |
Pre-built images are available from:
- Docker Hub:
logward/backend,logward/frontend - GitHub:
ghcr.io/logward-dev/logward-backend
Pin versions in production: LOGWARD_BACKEND_IMAGE=logward/backend:0.2.3
First Steps
1. Create Your Organization
After logging in, create your first organization to get started. Organizations are top-level containers for your projects.
2. Create a Project
Each organization can have multiple projects (e.g., "production", "staging"). Projects isolate logs and have their own API keys.
3. Generate an API Key
In your project settings, create an API key to start sending logs. Save it securely - it's shown only once!
4. Send Your First Log
Use the ingestion API to send logs:
Cloud (api.logward.dev)
curl -X POST https://api.logward.dev/api/v1/ingest \
-H "X-API-Key: lp_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"logs": [{
"time": "2025-01-23T10:30:00Z",
"service": "my-app",
"level": "info",
"message": "Hello from LogWard Cloud!",
"metadata": {
"environment": "production"
}
}]
}'Self-Hosted (localhost:8080)
curl -X POST http://localhost:8080/api/v1/ingest \
-H "X-API-Key: lp_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"logs": [{
"time": "2025-01-23T10:30:00Z",
"service": "my-app",
"level": "info",
"message": "Hello from LogWard!",
"metadata": {
"environment": "production"
}
}]
}'Next Steps
Want to contribute to LogWard? Set up a local development environment with hot-reloading.
Development Prerequisites
- Node.js 20+ - JavaScript runtime
- pnpm 8+ - Package manager
- Docker & Docker Compose - For databases
Setup Steps
# Clone the repository
git clone https://github.com/logward-dev/logward.git
cd logward
# Install dependencies
pnpm install
# Build shared package
pnpm run build:shared
# Start development databases
cd docker
docker-compose -f docker-compose.dev.yml up -d
cd ..
# Run database migrations
pnpm --filter '@logward/backend' migrate
# Start development servers
pnpm dev- Frontend:
http://localhost:3000 - Backend API:
http://localhost:8080
For more details, see our Contributing Guide.