Logstash like, written in golang
Logstash like, written in golang
curl 'https://github.com/tsaikd/gogstash/releases/download/0.1.8/gogstash-Linux-x86_64' -SLo gogstash && chmod +x gogstash…{
"input": [
{
"type": "dockerstats"
}
],
"output": [
{
"type": "report"
},
{
"type": "redis",
"key": "gogstash-docker-%{host}",
"host": ["127.0.0.1:6379"]
}
]
}input:
- type: dockerstats
output:
- type: report
- type: redis
key: "gogstash-docker-%{host}"
host:
- "127.0.0.1:6379"……GOMAXPROCS=4 ./gogstash --CONFIG nginx.jsondocker run -it --rm \
--name gogstash \
--hostname gogstash \
-e GOMAXPROCS=4 \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-v "${PWD}/dockerstats.json:/gogstash/config.json:ro" \
tsaikd/gogstash:0.1.8See input modules for more information
All filters support the following commmon functionality/configuration:
filter:
- type: "whatever"
# list of tags to add
add_tag: ["addtag1", "addtag2"]
# list of tags to remove
remove_tag: ["removetag1", "removetag2"]
# list of fields (key/value) to add
add_field:
- key: "field1"
value: "value1"
- key: "field2"
value: "value2"
# list of fields to remove
remove_field: ["removefield1", "removefield2"]See filter modules for more information
See output modules for more information
To setup the local machine, run make setup to install all tools for pre-commit.
If any of the installations fail or the pre-commit cannot find the go tools, ensure they are accessable though adding their's bin folder to your path.
No open issues yet, or sync has not completed.