文件名称:gologstash:Logstash服务器的HTTP客户端
文件大小:2KB
文件格式:ZIP
更新时间:2024-06-10 04:24:23
Go
gologstash Logstash服务器的HTTP客户端 刚刚明白 go get "github.com/mrkaspa/gologstash" 刚导入 import "github.com/mrkaspa/gologstash" 只需通话记录 var client = golog. Client { URL : "http://localhost:9090" , Host : "localhost" } client . PostLog ( "this is a log" ) 或者,如果您愿意,只需发送地图 var client = golog. Client { URL : "http://localhost:9090" , Host : "localhost" } // The message key is important for Logstas
【文件预览】:
gologstash-master
----.gitignore(10B)
----README.md(780B)
----test()
--------golog_test.go(757B)
----logstash-simple.conf(64B)
----golog.go(1KB)