PHPackages                             lizhichao/log2ck - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. lizhichao/log2ck

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

lizhichao/log2ck
================

listening log file written to clickhouse

0.2.1(4y ago)352110Apache-2.0PHP

Since Oct 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lizhichao/log2ck)[ Packagist](https://packagist.org/packages/lizhichao/log2ck)[ RSS](/packages/lizhichao-log2ck/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

A simple log collector, Monitor files through `tail -F ` command, write to the Clickhouse. Very low occupancy of resources, It can process more than 100 thousand log information per second

一个简单的日志收集器，占用极低的资源(比 `Logstash`，`Fluentd`，`Logtail`占用资源更少)，每秒可以轻松收集几十万以上的日志信息。

install
-------

[](#install)

`composer require lizhichao/log2ck`

example
-------

[](#example)

`tail -F apapche/access.log | php test.php`

```
$db_conf             = [];
$db_conf['host']     = 'tcp://192.168.23.129:9091';
$db_conf['username'] = 'default';
$db_conf['password'] = '123456';
$db_conf['database'] = 'test1';

$table       = 'web_log';
$server_name = 'web1';

$ck = new Log2Ck(
    $db_conf, //
    $table, // table
    [
    'host', 'ip', 'duration',
    'create_time', 'method', 'url', 'path', 'code', 'size',
    'refer', 'refer_host', 'user_agent',
    'server_name'
    ] //field name
);
$ck->regLogFn(function($row){
    // 自己解析 $row
    return $array; //和上面的字段对应
})->run();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~205 days

Total

2

Last Release

1811d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f409689ed08808a9e04222e40a4b7b71db61d9a9d23a9aa3737036504700b1df?d=identicon)[lizhichao1](/maintainers/lizhichao1)

---

Top Contributors

[![lizhichao](https://avatars.githubusercontent.com/u/3723567?v=4)](https://github.com/lizhichao "lizhichao (7 commits)")

---

Tags

clickhouseloglogginglogphpclickhouse

### Embed Badge

![Health badge](/badges/lizhichao-log2ck/health.svg)

```
[![Health](https://phpackages.com/badges/lizhichao-log2ck/health.svg)](https://phpackages.com/packages/lizhichao-log2ck)
```

###  Alternatives

[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
