install logtail binary to current directory:
GOBIN=$(dir) go install github.com/vogo/logtail@master
or download the binary from release page.
./logtail -file <config-file>
- tail a file and send error log to console: logtail-tail-to-console.json
- tail a file and write error log to directory: logtail-tail-to-dir.json
- tail all files under a given directory and send error log to lark webhook: logtail-dir-to-lark.json
- tail all files under a given directory and send error log to dingtalk webhook : logtail-dir-to-ding.json