Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

logchef

Skill by mr-karan

Query logs from the terminal with the Logchef CLI, using LogchefQL, raw ClickHouse SQL and VictoriaLogs LogsQL. It is for engineers and AI assistants who investigate logs from ClickHouse or VictoriaLogs sources.

  • Score 79
  • 953 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install logchef

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mr-karan/logchef /tmp/logchef && mkdir -p ~/.claude/skills && cp -r /tmp/logchef/.agents/skills/logchef ~/.claude/skills/logchef

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install logchef in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The logchef skill teaches an AI assistant to use the Logchef command-line tool to search logs. It covers LogchefQL filters through the query and tail commands, raw ClickHouse SQL and VictoriaLogs LogsQL through sql, and explain to preview the generated query without running it. It also covers field and value discovery, counts over time with histogram, finding which source holds a service or message with find, saved queries, live follow, output formats, and troubleshooting.

The logchef binary talks to a Logchef server over HTTP, and the server translates queries and runs them against ClickHouse or VictoriaLogs backends. The skill recommends an investigation loop: orient on sources and schema, quantify with histogram, narrow the filters, sample a few rows, and widen the time range last. It is aimed at engineers and assistants who investigate logs from ClickHouse- or VictoriaLogs-backed sources.

Written from the project's SKILL.md and checked against it.

What it can do

  • queryPrimary log search using LogchefQL on either backend.
  • explainShows the generated ClickHouse SQL or LogsQL without running it.
  • histogramReturns counts-over-time buckets to locate spikes without pulling rows.
  • sqlRuns raw ClickHouse SQL or VictoriaLogs LogsQL, passed to the backend verbatim.
  • tailFollows new logs live, using server streaming or a polling fallback.
  • findFinds which sources contain a service, host or message pattern.
  • fields and schemaLists field names, observed values and table columns.
  • collections and saved-queriesLists collections and runs saved queries by name, id or URL.
  • openOpens a query in the Logchef web explorer.
  • doctorChecks config, auth, server reachability and default team and source.

What you need

  • A Logchef server
  • Logchef OAuth login or an access token
  • A ClickHouse or VictoriaLogs source

Try asking

  • Find which source has logs for the payment-api service in the last hour
  • Show a histogram of error logs over the last 2 hours to find a spike
  • Run a LogsQL query on my VictoriaLogs source for checkout errors

Good to know

  • Relative times accept only whole m, h, d and w units, with no seconds.
  • Absolute times need both --from and --to in 'YYYY-MM-DD HH:MM:SS' format.
  • Raw sql text is backend-specific and is not converted for time zones.
  • With --since, a window crossing a daylight saving fall-back hour can come out wrong.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/logchef/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to logchef

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

logchef: common questions

Does Logchef work with both ClickHouse and VictoriaLogs?

Yes. The source says LogchefQL works on both backends because the server translates it. Raw SQL and LogsQL are sent to the backend as written.

How can I check a query before running it?

Use logchef explain, which shows the generated ClickHouse SQL or LogsQL without scanning data. The query command also has --dry-run and --explain flags.

Which output formats does the CLI support?

It supports text, json, jsonl, json-flat, table and msg, and sql adds csv. The source recommends jsonl with jq for machine parsing.

How do I install logchef?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is logchef free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is logchef safe to use?

It scores 79 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to logchef?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

logchef Install

Add to stack

Loading.