examples/

directory
v2.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: MIT

README

Subscribe Example

Build:

cd taoslogtail; go build
cd ../taoslogpump; go build

Run:

./taoslogtail

taoslogtail will subscribe table log.log, and tail the log. once new log item entered, it will print the log item as below:

May 28 04:39:01.374 0 ...:6030 user:... login from ..., result:success

You can generate above log via run say taos -s exit, or in batch while true; do taos -s exit; done, but it's still not so many log items generated. So you may need to run taoslogpump, to generate more fake log items:

./taoslogpump

Directories

Path Synopsis
* In this test program, we'll create a database and import 1000 records * with unsigned integers * * Authored by <Huo Linhe> linhe.huo@gmail.com
* In this test program, we'll create a database and import 1000 records * with unsigned integers * * Authored by <Huo Linhe> linhe.huo@gmail.com
* In this test program, we'll create a database and import 1000 records * with unsigned integers * * Authored by <Huo Linhe> linhe.huo@gmail.com
* In this test program, we'll create a database and import 1000 records * with unsigned integers * * Authored by <Huo Linhe> linhe.huo@gmail.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL