Getting an error while installing logstash websocket plugin

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

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

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).

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