Sha256: bdd46ccacb599c903714bdd1068cd53305712f5f9d304e6f5fa276f91effd8ec

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

# fluent-plugin-kubernetes, a plugin for [Fluentd](http://fluentd.org) 

## Installation

    gem install fluent-plugin-kubernetes

## Configuration
```
<source>
  type tail
  path /var/lib/docker/containers/*/*-json.log
  pos_file fluentd-docker.pos
  time_format %Y-%m-%dT%H:%M:%S
  tag docker.*
  format json
  read_from_head true
</source>

<match docker.var.lib.docker.containers.*.*.log>
  type kubernetes
  container_id ${tag_parts[5]}
  tag docker.${name}
</match>

<match kubernetes>
  type stdout
</match>
```

### Assuming following inputs are coming:
    test.aa: {"container_name":"k8s_CONTAINER.2f44475a_POD.NAMESPACE.api_ae0aeb72-c44f-11e4-a274-54ee7527188d_d442134f", "json":"dayo"}
### then output bocomes as belows
    test.aa: {"container_name":"k8s_CONTAINER.2f44475a_POD.NAMESPACE.api_ae0aeb72-c44f-11e4-a274-54ee7527188d_d442134f", "pod":"POD", "pod_namespace":"NAMESPACE", "pod_container":"CONTAINER", "json":"dayo", "hoge":"moge","hogehoge":"mogemoge"}

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## Copyright
    Copyright (c) 2015 jimmidyson

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluent-plugin-kubernetes-0.3.0 README.md
fluent-plugin-kubernetes-0.2.4 README.md
fluent-plugin-kubernetes-0.2.3 README.md
fluent-plugin-kubernetes-0.2.2 README.md
fluent-plugin-kubernetes-0.2.1 README.md