mr-karan/logchef
A self-hosted Go workspace for querying and monitoring existing log stores
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Logchef is a query and access-control layer over existing log stores, not an ingestion or storage engine. The Go server embeds the Vite UI: the Dockerfile builds it with Bun into cmd/server/ui before compiling the server. go.mod lists Fiber v3, Participle v2, a ClickHouse SQL parser, and the ClickHouse v2 driver. For ClickHouse and VictoriaLogs, users can query through LogchefQL or use the source’s native language.
Application metadata is separate from log data: SQLite is the default, and PostgreSQL is an option for multi-replica deployments. Browser users can sign in with local credentials or OIDC, with RBAC for access control. The CLI authenticates to a Logchef server, while AI clients can connect through the built-in MCP endpoint with OAuth sign-in; mcp-go is listed in the Go dependencies.
Key Capabilities & Differentiators
The clearest fit is ClickHouse and VictoriaLogs. Both support LogchefQL and live tail, and users can fall back to native SQL or LogsQL. logchef explain shows the generated query without executing it. VictoriaLogs also supports source-level authentication, tenant headers, and immutable query scope. The project description lists Grafana Loki, but equivalent query, live-tail, and dashboard behavior is not established; validate the Loki workflows you need before standardizing on it.
Dashboards can combine ClickHouse and VictoriaLogs panels on a shared time range, with time-series, stat, breakdown, and table views. Saved queries support repeat investigations, and scheduled rules notify by email or webhook. The AI Query Assistant drafts LogchefQL, ClickHouse SQL, or LogsQL from natural language. That authoring feature is distinct from MCP, which gives external assistants an integration endpoint.
Trade-offs & Limitations
Compared with using native ClickHouse or VictoriaLogs clients alone, Logchef adds value when teams need common query workflows, shared dashboards, alerts, and access control. For one source and a team already fluent in its native query language, Logchef is another service to operate. It is also not a drop-in Kibana migration: assess the workflows you need rather than assuming existing dashboards or queries will transfer.
Dashboard caching, ClickHouse query guardrails, streaming for large ClickHouse results, and opt-in rate limiting help manage workload, but the sources still execute the queries. Test peak dashboard refreshes, long live tails, and scheduled alerts against the backends you already run. AGPL-3.0 permits commercial use, but review the source-code obligations before distributing builds or offering a modified version over a network.
Hardware & Deployment Guide
For a Docker evaluation, use deployment/docker/docker-compose.yml; the local UI is at http://localhost:8125. The server also ships as a single executable with the UI embedded, so Bun is a build dependency, not a runtime service. The chart under deployment/helm covers Logchef, Dex, and ClickHouse via the Altinity operator. Plan for network access to existing log sources and choose local authentication or an OIDC provider. The CLI is released separately under cli-v tags.
Start with SQLite for a single instance; use PostgreSQL when planning multiple replicas. No GPU is specified for the core query path. Size the server for concurrent queries, live tails, scheduled alerts, and result volume, and size the query backends separately. The v2.8.1 notes include an SMTP envelope-sender fix, v2.8.2 fixed Explorer filter actions that should run queries, and v2.8.3 lists documentation changes. The no-migration notes apply to the stated v2.8.1 and v2.8.2 upgrade paths, not to upgrades in general.
cmd/server/ui for embedding in the Go server binary.logchef explain, or switch to native SQL or LogsQL.histogram, tail, and doctor.SRE and platform teams that already run ClickHouse or VictoriaLogs and want shared investigations, dashboards, alerts, and controlled access from the browser, CLI, or AI assistants.
You need Logchef to collect and store logs, require a drop-in Kibana migration, or cannot verify the Loki capabilities your workflow depends on.
Quick Start & Installation
# Download the Docker Compose file curl -LO https://raw.githubusercontent.com/mr-karan/logchef/refs/heads/main/deployment/docker/docker-compose.yml # Start the services docker compose up -d
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| logchef ★ | 953 | +6 | Go | AGPL-3.0 | A self-hosted Go workspace for querying and monitoring existing log stores |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| windmill | 19k | +236 | Rust | — | PostgreSQL-backed orchestration for code-first workflows, apps, and AI agents |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/mr-karan/logchef.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about logchef
How do existing log sources, terminal users, and AI assistants connect?
logchef explain, or use SQL or LogsQL directly. Assistants connect to the built-in MCP endpoint using OAuth. Grafana Loki is listed in the project description, but do not assume it has the same query and tailing behavior.Does Logchef need a GPU, and what should I size separately?
Can a company self-host Logchef under AGPL-3.0?
When is Logchef a better fit than native clients or a Kibana-style workflow?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy