Fluent::Plugin::DockerEventStreamInput, a plugin for Fluentd
An input plugin for fluentd collecting Docker events
gem install fluent-plugin-dockerevents
<source>
@type docker_events
tag debug.docker
# events create,start,stop,die,kill,oom
events die
</source>
tag
: Fluentd tagevents
: list of events to be followed (only these will be sent forward)
{
"id": "3212373f0339360cbae824a05f6693693d0b9376ed07d11acdc1b7879cf6d25c",
"action": "die",
"status": "die",
"type": "container",
"container": {
"state": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2016-10-31T16:05:25.236188542Z",
"FinishedAt": "2016-10-31T16:05:30.241883914Z"
},
"name": "kickass_mayer",
"image": [
"alpine:latest"
]
}
}
- Docker configuration
- Write tests