UNPKG

@taotiejs/server

Version:

Log collecting and querying based on pinojs and clickhouse

59 lines (41 loc) 2.13 kB
# Taotie Server [![npm][badge-version]][npm] [![npm downloads][badge-downloads]][npm] [![license][badge-license]][license] [![github][badge-issues]][github] Log collecting and querying based on pinojs and clickhouse. ## Installation ```sh npm install @taotiejs/server -g ``` ## Usage ```sh taotie [options] Options: -V, --version output the version number -d, --db-host <hostname> clickhouse host (default: "127.0.0.1") -P, --db-port <port> clickhouse port (default: 80) -a, --db-auth <username:password> clickhouse username and password -n, --db-name <database> clickhouse database name (default: "taotie") -H, --http <port> HTTP server port (default: 80) -U, --udp <port> UDP log receiver port (default: 514) -i --interval <second> save logs interval (default: 5) -I --data-skipping-indices enable clickhouse data skipping indices -D, --dev development mode -h, --help output usage information ``` ## Logger You may use [`@taotiejs/logger`](https://github.com/taotiejs/taotie-logger) for logging. [badge-version]: https://img.shields.io/npm/v/@taotiejs%2Fserver.svg [badge-downloads]: https://img.shields.io/npm/dt/@taotiejs%2Fserver.svg [npm]: https://www.npmjs.com/package/@taotiejs%2Fserver [badge-size]: https://img.shields.io/bundlephobia/minzip/@taotiejs%2Fserver.svg [bundlephobia]: https://bundlephobia.com/result?p=@taotiejs%2Fserver [badge-license]: https://img.shields.io/npm/l/@taotiejs%2Fserver.svg [license]: https://github.com/taotiejs/taotie-server/blob/master/LICENSE [badge-issues]: https://img.shields.io/github/issues/taotiejs/taotie-server.svg [github]: https://github.com/taotiejs/taotie-server [badge-build]: https://img.shields.io/travis/com/taotiejs/taotie-server/master.svg [travis]: https://travis-ci.com/taotiejs/taotie-server [badge-coverage]: https://img.shields.io/coveralls/github/taotiejs/taotie-server/master.svg [coveralls]: https://coveralls.io/github/taotiejs/taotie-server?branch=master