|
| 1 | +kids |
| 2 | +==== |
| 3 | + |
| 4 | +Kids is a log aggregation system. |
| 5 | + |
| 6 | +It aggregates messages like [Scribe](https://github.com/facebookarchive/scribe) and its pub/sub pattern is ported from [Redis](http://redis.io/). |
| 7 | + |
| 8 | + |
| 9 | +Features |
| 10 | +-------- |
| 11 | + |
| 12 | +* Real-time subscription |
| 13 | +* Distributed collection |
| 14 | +* Message persistence |
| 15 | +* Multithreading |
| 16 | +* Redis protocol |
| 17 | +* No third-party dependencies |
| 18 | + |
| 19 | + |
| 20 | +Installation |
| 21 | +------------ |
| 22 | + |
| 23 | +You need a complier with C++11 support like GCC 4.7 (or later) or [Clang](http://clang.llvm.org). |
| 24 | + |
| 25 | + ./autogen.sh |
| 26 | + ./configure # --prefix=/your/path |
| 27 | + make |
| 28 | + make test # optional |
| 29 | + make install |
| 30 | + |
| 31 | +By default, it will be installed to `/usr/local/bin/kids`. |
| 32 | +You can use the `--prefix` option to specify the installation location. |
| 33 | +Run `./configure --help` for more config options. |
| 34 | + |
| 35 | + |
| 36 | +Quickstart |
| 37 | +---------- |
| 38 | + |
| 39 | +In the distributed mode, first start kids with the `server.conf`: |
| 40 | + |
| 41 | + kids -c sample/server.conf |
| 42 | + |
| 43 | +Next, edit `host` and `port` in `networkstore` in `sample/agent.conf` as: |
| 44 | + |
| 45 | + store network primary { |
| 46 | + host kidsserver; |
| 47 | + port 3388; |
| 48 | + } |
| 49 | + |
| 50 | +Then, run kids with the modified config file: |
| 51 | + |
| 52 | + kids -c sample/agent.conf |
| 53 | + |
| 54 | +Finally, use `publish` command in Redis protocol to send log to kids agent. |
| 55 | +All the log will be resent to your kids server and persistently stored to disk for analysis later. |
| 56 | +You can also use `subscribe` or `psubscribe` in Redis protocol to get real-time log from kids server. |
| 57 | + |
| 58 | +Full explanation of config file, see [here](doc/config.md). |
| 59 | + |
| 60 | +You can directly run `kids -c sample/server.conf` on single-server mode without agent, but it is NOT recommended. |
| 61 | + |
| 62 | +Run `kids --help` for more running options. |
| 63 | + |
| 64 | + |
| 65 | +License |
| 66 | +------- |
| 67 | + |
| 68 | +Kids is BSD-licensed, see LICENSE for more details. |
| 69 | + |
| 70 | + |
| 71 | +FAQ |
| 72 | +--- |
| 73 | + |
| 74 | +Q: What is the meaning of "kids"? |
| 75 | +A: "kids" is the recursive acronym of "__K__ids __I__s a __D__ata __S__tream". |
| 76 | + |
| 77 | + |
| 78 | +Architecture |
| 79 | +------------ |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +You can view the Chinese version README [here](README.zh_CN.md) |
| 84 | + |
0 commit comments