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