1 Star 0 Fork 0

sqos / beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 694 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steffen Siering 提交于 2016-07-12 15:42 . Simplify Beater interface (#2003)
package main
import (
"os"
"github.com/elastic/beats/filebeat/beater"
"github.com/elastic/beats/libbeat/beat"
)
var Name = "filebeat"
// The basic model of execution:
// - prospector: finds files in paths/globs to harvest, starts harvesters
// - harvester: reads a file, sends events to the spooler
// - spooler: buffers events until ready to flush to the publisher
// - publisher: writes to the network, notifies registrar
// - registrar: records positions of files read
// Finally, prospector uses the registrar information, on restart, to
// determine where in each file to restart a harvester.
func main() {
if err := beat.Run(Name, "", beater.New); err != nil {
os.Exit(1)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v5.6.0

搜索帮助

344bd9b3 5694891 D2dac590 5694891