# Calling logstash filter plugin api from java code

**URL:** https://discuss.elastic.co/t/calling-logstash-filter-plugin-api-from-java-code/97971
**Category:** Logstash
**Created:** [August 22, 2017, 7:48pm UTC](https://discuss.elastic.co/t/calling-logstash-filter-plugin-api-from-java-code/97971 "2017-08-22T19:48:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hellosb](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@hellosb](https://discuss.elastic.co/u/hellosb)
#### Post date: [August 22, 2017, 7:48pm UTC](https://discuss.elastic.co/t/calling-logstash-filter-plugin-api-from-java-code/97971/1 "2017-08-22T19:48:16Z")

</div>

I have bunch of custom filter(parsers and enrichment) plugins in logstash. Now my requirement is to provide similar functionality at service layer which is implemented in java.

I want to avoid re implementing(and maintaining multiple copies) those parsers and enrichment modules in java. Is there way by which I can just call logstash's filter plugin part from java and it will return result back to java.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 19, 2017, 7:48pm UTC](https://discuss.elastic.co/t/calling-logstash-filter-plugin-api-from-java-code/97971/2 "2017-09-19T19:48:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
