gogstash:类似logstash,用golang编写
戈斯塔什
Logstash之类,用golang编写
从github下载gogstash
使用 image
curl 'https://github.com/tsaikd/gogstash/releases/download/0.1.8/gogstash-Linux-x86_64' -SLo gogstash && chmod +x gogstash
为ubuntu-sys.json配置(示例)
{
"input": [
{
"type": "exec",
"command": "sh",
"interval": 60,
"message_prefix": "%{@timestamp} [df] ",
"args": ["-c", "df -B 1 / | sed 1d"]
},
{
"type": "exec",
"comman