# Error when building logstash-filter-elasticsearch plugin

**URL:** <https://discuss.elastic.co/t/error-when-building-logstash-filter-elasticsearch-plugin/302838>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [April 20, 2022, 4:29pm UTC](https://discuss.elastic.co/t/error-when-building-logstash-filter-elasticsearch-plugin/302838 "2022-04-20T16:29:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jong99](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jong99](https://discuss.elastic.co/u/jong99)\
**Post date:** [April 20, 2022, 4:29pm UTC](https://discuss.elastic.co/t/error-when-building-logstash-filter-elasticsearch-plugin/302838/1 "2022-04-20T16:29:48Z")

</div>

I'm trying to track down an issue I'm having with the `logstash-filter-elasticsearch` plugin so I've checked out the code and am trying to build from source.

Running inside a ruby:9.2 docker container I'm checking out the code then trying to build with

```auto
bundle install
bundle exec rspec
gem build *.gemspec

```

This is failing with the error

```auto
An error occurred while loading ./spec/filters/elasticsearch_spec.rb. - Did you mean?
                    rspec ./spec/filters/integration/elasticsearch_spec.rb

Failure/Error: require "elasticsearch/transport/transport/http/manticore"

LoadError:
  no such file to load -- elasticsearch/transport/transport/http/manticore
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
# ./lib/logstash/filters/elasticsearch/client.rb:4:in `<main>'
# ./lib/logstash/filters/elasticsearch.rb:5:in `<main>'
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
# ./spec/filters/elasticsearch_spec.rb:4:in `<main>'
# ------------------
# --- Caused by: ---
# Polyglot::PolyglotLoadError:
# Failed to load elasticsearch/transport/transport/http/manticore using extensions rb, treetop, tt
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:55:in `load'

An error occurred while loading ./spec/filters/integration/elasticsearch_spec.rb. - Did you mean?
                    rspec ./spec/filters/elasticsearch_spec.rb

Failure/Error: require "elasticsearch/transport/transport/http/manticore"

LoadError:
  no such file to load -- elasticsearch/transport/transport/http/manticore
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
# ./lib/logstash/filters/elasticsearch/client.rb:4:in `<main>'
# ./lib/logstash/filters/elasticsearch.rb:5:in `<main>'
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
# ./spec/filters/integration/elasticsearch_spec.rb:4:in `<main>'
# ------------------
# --- Caused by: ---
# Polyglot::PolyglotLoadError:
# Failed to load elasticsearch/transport/transport/http/manticore using extensions rb, treetop, tt
# /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:55:in `load'
Run options: exclude {:redis=>true, :socket=>true, :performance=>true, :couchdb=>true, :elasticsearch=>true, :elasticsearch_secure=>true, :export_cypher=>true, :integration=>true, :windows=>true}

```

If I check out v.3.8.0 then I can build successfully with the above commands, but it fails for all versions \> v3.8.0

Am I missing a step in trying to build the plugin?

---

<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:** [May 18, 2022, 4:30pm UTC](https://discuss.elastic.co/t/error-when-building-logstash-filter-elasticsearch-plugin/302838/2 "2022-05-18T16:30:24Z")

</div>

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