Show HN:Logchef——ClickHouse的无模式日志查看器
Show HN: Logchef – Schema-agnostic log viewer for ClickHouse

原始链接: https://github.com/mr-karan/logchef

Logchef是一个轻量级、高性能的日志分析平台,旨在高效地管理和分析日志。它以单二进制文件的形式构建,利用ClickHouse,能够在大型数据集上以极低的资源消耗实现快速的查询执行。其无需预定义模式的模式无关设计允许用户查询任何ClickHouse表,既提供简单的搜索语法,又提供完整的ClickHouse SQL,以便灵活地进行高级分析。只需简单的Docker Compose部署,即可通过`http://localhost:8125`访问其直观的界面。主要功能包括基于团队的访问控制和细粒度的权限,简化了多租户日志访问和安全性管理。单二进制文件的特性简化了部署流程。完整的文档可在logchef.app上找到。采用AGPLv3许可证发布。

Logchef 的创建者 Karan 在 Hacker News 上发布了他的 ClickHouse 开源日志查看器。由于像 Metabase 这样的通用 BI 工具在日志探索方面的局限性(例如查询笨拙、可视化脱节以及 UI 摩擦),让他感到沮丧,因此他构建了 Logchef 来解决这些常见问题。 Logchef 专为 ClickHouse 日志设计,与模式无关,专注于查看和查询。它与现有的日志收集工具(如 Vector 和 Fluentbit)集成。主要功能包括一个简单的搜索语法,该语法可以转换为高效的 ClickHouse SQL。其技术栈包括 Go 后端、用于元数据的 SQLite 以及 Vue.js + shadcn/ui + Tailwind CSS 前端。 Logchef 目前在 Zerodha 内部使用,目标是发布 v1.0 版本,未来的增强功能包括警报和实时尾随日志。Karan 鼓励通过 GitHub 提供反馈和贡献,并邀请用户试用在线演示。Logchef 通过表示 ClickHouse 表的“数据源”(Sources)实现多租户访问控制,允许管理员根据数据库权限向特定团队授予访问权限。

原文

A modern, high-performance log analytics platform

Try Demo · Read Documentation · Announcement Blog Post

Logchef is a lightweight, powerful log analytics platform designed for efficient log management and analysis. It operates as a single binary, utilizing ClickHouse for high-performance log storage and querying. Logchef provides an intuitive interface for exploring log data, making it suitable for development teams seeking a robust and scalable solution.

  • Schema-Agnostic Log Exploration: Query any ClickHouse table without predefined schema constraints.
  • Flexible Query Options: Supports both simple search syntax and full ClickHouse SQL for advanced analysis.
  • High Performance: Engineered for fast query execution on large datasets with minimal resource consumption.
  • Team-Based Access Control: Provides secure, multi-tenant log access with configurable, fine-grained permissions.
  • Single Binary Deployment: Simplifies installation, deployment, and management.
# Download the Docker Compose file
curl -LO https://github.com/mr-karan/logchef/raw/master/deployment/docker/docker-compose.yml

# Start the services
docker compose up -d

Access the Logchef interface at http://localhost:8125.

For comprehensive documentation, including setup guides, configuration options, and API references, please visit logchef.app.

Logchef Light Explore View Logchef Dark Explore View Logchef Collections View Logchef Teams View Logchef Users View Logchef Source Settings View

Logchef is distributed under the terms of the AGPLv3 License.

联系我们 contact @ memedata.com