Skip to content

grafana log push , 导入日志工具 , 支持自定义数据源,自定义日志格式

License

Notifications You must be signed in to change notification settings

relunctance/grafalog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

release go.dev reference

Grafalog 导入日志小工具

  • 支持日志推送到Mysql
  • 支持自定义解析日志格式
  • 实现接口可支持自定义推送数据源 , 比如Zabbix

Install

go get -u -v github.com/relunctance/grafalog

Start

  • 默认输出到终端
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)
    }
}

Example 示例

Contribute

  • Please feel free to make suggestions, create issues, fork the repository and send pull requests!

About

grafana log push , 导入日志工具 , 支持自定义数据源,自定义日志格式

Resources

License

Stars

Watchers

Forks

Packages

No packages published