Skip to content

clowwindy/kids

 
 

Repository files navigation

kids

Kids is a log aggregation system.

It aggregates messages like Scribe and its pub/sub pattern is ported from Redis.

Features

  • Real-time subscription
  • Distributed collection
  • Message persistence
  • Multithreading
  • Redis protocol
  • No third-party dependencies

Installation

You need a complier with C++11 support like GCC 4.7 (or later) or Clang.

Download a release. Untar the tarball, then:

./configure
make
make test  # optional
make install

By default, it will be installed to /usr/local/bin/kids. You can use the --prefix option to specify the installation location. Run ./configure --help for more config options.

Quickstart

In the distributed mode, first start kids with the server.conf:

kids -c sample/server.conf

Next, edit host and port in networkstore in sample/agent.conf as:

store network primary {
  host kidsserver;
  port 3388;
}

Then, run kids with the modified config file:

kids -c sample/agent.conf

Finally, use publish command in Redis protocol to send log to kids agent. All the log will be resent to your kids server and persistently stored to disk for analysis later. You can also use subscribe or psubscribe in Redis protocol to get real-time log from kids server.

Full explanation of config file, see here.

You can directly run kids -c sample/server.conf on single-server mode without agent, but it is NOT recommended.

Run kids --help for more running options.

License

Kids is BSD-licensed, see LICENSE for more details.

FAQ

Q: What is the meaning of "kids"?
A: "kids" is the recursive acronym of "Kids Is Data Stream".

Architecture

image

You can view the Chinese version README here

About

Kids Is Data Stream

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.4%
  • C 6.2%
  • Go 0.6%
  • Python 0.4%
  • Bison 0.3%
  • Other 0.1%