# How can I easily use Elasticsearch libs jars (grok, dissect) in Java code?

**URL:** <https://discuss.elastic.co/t/how-can-i-easily-use-elasticsearch-libs-jars-grok-dissect-in-java-code/195800>\
**Category:** Elasticsearch\
**Created:** [August 19, 2019, 7:02pm UTC](https://discuss.elastic.co/t/how-can-i-easily-use-elasticsearch-libs-jars-grok-dissect-in-java-code/195800 "2019-08-19T19:02:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Nezda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luke_nezda/32/47152_2.png) [@Luke\_Nezda](https://discuss.elastic.co/u/Luke_Nezda)\
**Post date:** [August 19, 2019, 7:02pm UTC](https://discuss.elastic.co/t/how-can-i-easily-use-elasticsearch-libs-jars-grok-dissect-in-java-code/195800/1 "2019-08-19T19:02:02Z")

</div>

Hello, All -

I'd like to use Elasticsearch's versions of dissect and grok in my Java code. There doesn't seem to be a Maven dependency which provides this. I've managed to build the libs using gradle but I'd prefer to get the latest versions automatically when I update our Elasticsearch dependencies. We're currently on the 6.x series. Any tips or advice besides packaging this stuff up myself or using someone else's forks/versions?

Thanks in advance,

- Luke

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [August 19, 2019, 11:40pm UTC](https://discuss.elastic.co/t/how-can-i-easily-use-elasticsearch-libs-jars-grok-dissect-in-java-code/195800/2 "2019-08-19T23:40:39Z")

</div>

While I understand your dilemma in not wanting to reinvent work that already exists in the open source world, Elasticsearch is an application, not a library. grok and dissect are internal implementations meant for the Elasticsearch server; the java apis can and do change. For this reason these jars are not published. If you want to use them in your system, you will need to build and integrate this on your own, but the fact you can do this is the beauty of open source!

---

<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 16, 2019, 11:42pm UTC](https://discuss.elastic.co/t/how-can-i-easily-use-elasticsearch-libs-jars-grok-dissect-in-java-code/195800/3 "2019-09-16T23:42:50Z")

</div>

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