Add new plugin to logstash

I want to add new plugin (logstash-filter-example) to logstash?

Have you looked at the documentation, e.g. https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_filter_plugin.html?