# Getting an error while installing logstash websocket plugin

**URL:** <https://discuss.elastic.co/t/getting-an-error-while-installing-logstash-websocket-plugin/276618>\
**Category:** Logstash\
**Created:** [June 22, 2021, 8:21am UTC](https://discuss.elastic.co/t/getting-an-error-while-installing-logstash-websocket-plugin/276618 "2021-06-22T08:21:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syrine\_chelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syrine_chelly/32/84013_2.png) [@syrine\_chelly](https://discuss.elastic.co/u/syrine_chelly)\
**Post date:** [June 22, 2021, 8:21am UTC](https://discuss.elastic.co/t/getting-an-error-while-installing-logstash-websocket-plugin/276618/1 "2021-06-22T08:21:24Z")

</div>

i want to install logstash websocket pluginto make a real-time communication between Elasticsearch and Logstash, through a websocket.`this is the error that i get while installing

```auto
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash":
  In Gemfile:
    logstash-output-websocket java was resolved to 0.1.2, which depends on
      logstash (>= 1.4.0, < 2.0.0) java

Could not find gem 'logstash (>= 1.4.0, < 2.0.0)', which is required by gem 'logstash-output-websocket', in any of the sources.

Bundler could not find compatible versions for gem "logstash-core":
  In snapshot (Gemfile.lock):
    logstash-core (= 7.10.2)

  In Gemfile:
    logstash-core java

    logstash-core-plugin-api java was resolved to 2.1.16, which depends on
      logstash-core (= 7.10.2) java

    logstash-input-syslog java was resolved to 3.4.4, which depends on
      logstash-filter-grok java was resolved to 4.3.0, which depends on
        logstash-core (>= 5.6.0) java

    logstash-integration-jdbc java was resolved to 5.0.6, which depends on
      logstash-core (>= 6.5.0) java

    logstash-output-elasticsearch (>= 10.4.2) java was resolved to 10.7.3, which depends on
      logstash-mixin-ecs_compatibility_support (~> 1.0) java was resolved to 1.0.0, which depends on
        logstash-core (>= 5.0.0) java

    logstash-output-websocket java was resolved to 0.1.4, which depends on
      logstash-core (>= 1.4.0, < 2.0.0) java

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Bundler could not find compatible versions for gem "sinatra":
  In snapshot (Gemfile.lock):
    sinatra (= 2.1.0)

  In Gemfile:
    logstash-core java was resolved to 7.10.2, which depends on
      sinatra (~> 2) java

    logstash-output-websocket java was resolved to 3.0.5, which depends on
      sinatra (~> 1.4.6) java

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

```

How to solve it please ? still don't find a solution

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 22, 2021, 4:37pm UTC](https://discuss.elastic.co/t/getting-an-error-while-installing-logstash-websocket-plugin/276618/2 "2021-06-22T16:37:10Z")

</div>

> [@syrine\_chelly](#):
>
> `logstash (>= 1.4.0, < 2.0.0)`

The dependency on logstash was replaced with a dependency on logstash-core in 2015. If you want to run a version of the plugin that old you will need to run it in a version of logstash that old (i.e. a 1.x release, not a 7.x release).

---

<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:** [July 20, 2021, 4:38pm UTC](https://discuss.elastic.co/t/getting-an-error-while-installing-logstash-websocket-plugin/276618/3 "2021-07-20T16:38:06Z")

</div>

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