logstash-filter-kubernetes-metadata Example filter plugin. This should help bootstrap your effort to write your own filter plugin!