No commit activity in last 3 years
No release in over 3 years
fluent plugin for get k8s simple metadata.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0
>= 0.14.0, < 2
~> 12.3.3
 Project Readme

fluent-plugin-k8sGem Version

Fluent plugin for get simple metadata of k8s

Installation

Install it yourself as:

$ gem install fluent-plugin-k8s

Configuration

<filter **>
  @type k8s
</filter>

Usage

<source>
  @type file
  path /var/log/containers/*.log
  tag raw.kubernetes.**
</source>

<filter raw.kubernetes.**>
  @type k8s
</filter>

<match **>
  @type stdout
</match>

The k8S you can get include POD name, namespace, Container name, and dockerId.

{
"pod_name": "influxdb-1",
"namespace_name": "monitoring",
"container_name": "influxdb"
}