Open Source Log Analytics for Your Stack | Logchef

Logchef

5 min read Original article ↗

DeploySingle binary

Data modelNo new storage layer

BackendsClickHouse · VictoriaLogs · Loki

InterfacesWeb · CLI · MCP

AccessRBAC included

Log Explorerdemo.logchef.app

New in Logchef 2.0

One operational view across every log backend

VictoriaLogs is now a first-class datasource, and dashboards can combine it with ClickHouse on the same grid. The backend changes; the investigation workflow does not.

Cross-source dashboards

See the whole system, not another silo

Mix ClickHouse and VictoriaLogs panels on one grid. Stats, time series, breakdowns, and tables share the same time range and refresh together.Build a log dashboard.

VictoriaLogs, first-class

Use LogchefQL, or go native

Explore VictoriaLogs with the same field-first workflow as ClickHouse, then switch to native LogsQL whenever an investigation needs backend-specific power.

LogchefQL

One workflow. Native when you need it.

lvl="ERROR" and duration_ms>500

Use LogchefQL across every source, or switch to native SQL and LogsQL without leaving the investigation.

ClickHouse

Native SQL when you need it.

TABLE default.app_logs · MergeTree

Compiled from LogchefQL

SELECT * FROM default.app_logs
WHERE (lvl = 'ERROR')
  AND (duration_ms > 500)

Matching event

14:03:17.512 ERROR edge-gateway ap-south 812ms upstream timeout on /v1/checkout

VictoriaLogs

Native LogsQL when you need it.

SOURCE waf-security · HTTP API

Compiled from LogchefQL

(lvl:="ERROR") AND (duration_ms:>500)

Matching event

_time=14:03:17.512 lvl=ERROR service_name=edge-gateway region=ap-south duration_ms=812

Your backend stays the source of truth. Logchef queries ClickHouse, VictoriaLogs and Grafana Loki directly. There is no re-ingestion, duplicate storage, or schema migration.Learn LogchefQL search syntax.

The daily workflow

Everything between storage and answers

Your backend already stores the logs. Logchef gives your team one place to explore them, understand their structure, reuse useful queries, and act when something breaks.

Explore

Scan fast, then narrow

Compact rows put more events on screen. The histogram above them shows when the spike happened, so you can watch your query close in on it.

Fields

Discover the shape of your data

Inspect available fields, top values, and counts without leaving the results. Click any value to add a filter instead of memorizing column names.

Alerts

Turn a useful query into an alert

Save a query as a rule and pick how often it runs. When it matches, Logchef sends email or hits a webhook. The query that found the problem is the one that warns you next time.Configure log alerts.

AI Assistant

Describe the question. Keep control of the query.

Describe what you're after. You get LogchefQL, ClickHouse SQL, or LogsQL back in the query bar, where you can read it and change it before it runs.

New in v2.0

The largest Logchef release yet

VictoriaLogs, cross-source dashboards, live tail, local authentication, a more capable CLI, and production guardrails turn Logchef into a complete operational workspace.

VictoriaLogs, first-class

Search it with LogchefQL, or drop into LogsQL when you need to. Tenant headers and source scopes carry through every query. Alerts and live tail work the same as they do on ClickHouse.

Cross-source dashboards

Put ClickHouse and VictoriaLogs panels on the same grid. Drag and resize them in place. Time series, stats, breakdowns, and tables all share one time range.

Live investigation

Keep the filter that found the issue running and watch matching events arrive in the browser or your terminal.

RBAC included in open source

Use local login or OIDC, then control access with global, team, and collection roles. Source assignments isolate log data, scoped service tokens secure automation, and provisioning keeps access reproducible.

Investigate from the terminal

Query either backend from your terminal. Read the generated query before it runs, draw histograms, tail live, dig through fields and history, and hand any result off to the browser.

Guardrails for production

Cache dashboard results, set per-source ClickHouse query limits, stream large ClickHouse previews, and enable rate limits for shared deployments.

Deployment

One binary. Up in minutes.

Logchef itself has no runtime dependencies. Start with the bundled local demo stack, or download the binary and configure it for the ClickHouse, VictoriaLogs or Loki backend you already run.

curl -LO https://raw.githubusercontent.com/mr-karan/logchef/main/deployment/docker/docker-compose.yml

docker compose up -d

VERSION="2.0.0"
curl -LO https://github.com/mr-karan/logchef/releases/download/v${VERSION}/logchef_${VERSION}_linux_amd64.tar.gz
tar xzf logchef_${VERSION}_linux_amd64.tar.gz


curl -LO https://raw.githubusercontent.com/mr-karan/logchef/main/config.toml

./logchef -config config.toml

Fits your existing stack

Keep your pipeline. Add the workspace.

Vector and OpenTelemetry keep shipping logs to the backends you already operate. Logchef connects to ClickHouse and VictoriaLogs as the query and control plane.

Ingestion

Your existing pipeline

Collect and route logs with the tools you already run.

VectorOpenTelemetry

Query + control plane

Logchef

Search, tail, visualize, alert, and automate across both backends.

Single binary

No forwarding changes. No duplicate storage. No schema migration.