- 支持日志推送到Mysql
- 支持自定义解析日志格式
- 实现接口可支持自定义推送数据源 , 比如Zabbix
go get -u -v github.com/relunctance/grafalog
- 默认输出到终端
package main
import (
"os"
"github.com/relunctance/grafalog"
)
func main() {
g := grafalog.New("./test.logs")
err = g.Run() // default output os.Stdout
if err != nil {
panic(err)
}
}
- Please feel free to make suggestions, create issues, fork the repository and send pull requests!