# Cannot build logstash-output-elasticsearch plugin locally

**URL:** <https://discuss.elastic.co/t/cannot-build-logstash-output-elasticsearch-plugin-locally/352845>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 8, 2024, 9:57am UTC](https://discuss.elastic.co/t/cannot-build-logstash-output-elasticsearch-plugin-locally/352845 "2024-02-08T09:57:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amaciejk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amaciejk/32/131557_2.png) [@amaciejk](https://discuss.elastic.co/u/amaciejk)\
**Post date:** [February 8, 2024, 9:57am UTC](https://discuss.elastic.co/t/cannot-build-logstash-output-elasticsearch-plugin-locally/352845/1 "2024-02-08T09:57:03Z")

</div>

I'm attempting to build this plugin locally:

> **[Elasticsearch output plugin | Logstash Reference \[8.12\] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html)**

> **[GitHub - logstash-plugins/logstash-output-elasticsearch](https://github.com/logstash-plugins/logstash-output-elasticsearch)**
>
> Contribute to logstash-plugins/logstash-output-elasticsearch development by creating an account on GitHub.

However it fails seemingly due to a gemspec dependency issue:

```auto
logstash-output-elasticsearch % jruby -S bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies.....................
Bundler could not find compatible versions for gem "logstash-core":
  In Gemfile:
    logstash-output-elasticsearch was resolved to 11.22.2, which depends on
logstash-core-plugin-api (>= 1.60, <= 2.99) was resolved to 1.60.1, which
depends on
        logstash-core (<= 2.4.99, >= 2.4.0.snapshot1)
    logstash-output-elasticsearch was resolved to 11.22.2, which depends on
logstash-mixin-deprecation_logger_support (~> 1.0) was resolved to 1.0.0,
which depends on
        logstash-core (>= 5.0.0)

```

Has anyone managed to build this plugin locally themselves?

I assume as this plugin is being released frequently it must be being built internally somehow, but perhaps there is some difference in my jruby/gem/bundler versions which affects the dependency resolution:

```auto
jruby -version
jruby 9.4.5.0 (3.1.4) 2023-11-02 1abae2700f OpenJDK 64-Bit Server VM 21.0.2 on 21.0.2 +jit [arm64-darwin]
bundle --version
Bundler version 2.3.26

```

I've also attempted the same, with the same failure in a jruby:9-jdk docker image.

I've opened an issue here: [Cannot bundle install due to gemspec deps · Issue #1166 · logstash-plugins/logstash-output-elasticsearch · GitHub](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/1166) but any insight or tips would be appreciated.

---

<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:** [March 7, 2024, 9:57am UTC](https://discuss.elastic.co/t/cannot-build-logstash-output-elasticsearch-plugin-locally/352845/2 "2024-03-07T09:57:56Z")

</div>

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