# Log4j-2 plugin installation error in version 6.2.2

**URL:** <https://discuss.elastic.co/t/log4j-2-plugin-installation-error-in-version-6-2-2/147961>\
**Category:** Logstash\
**Created:** [September 10, 2018, 12:37pm UTC](https://discuss.elastic.co/t/log4j-2-plugin-installation-error-in-version-6-2-2/147961 "2018-09-10T12:37:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjeet](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@ranjeet](https://discuss.elastic.co/u/ranjeet)\
**Post date:** [September 10, 2018, 12:37pm UTC](https://discuss.elastic.co/t/log4j-2-plugin-installation-error-in-version-6-2-2/147961/1 "2018-09-10T12:37:11Z")

</div>

Hi,

While installing log4j2 plugin getting below error.

root@localhost:/home/developers/logstash-5.5.2# bin/logstash-plugin install logstash-input-log4j2  
Validating logstash-input-log4j2  
Installing logstash-input-log4j2  
Plugin version conflict, aborting  
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core":  
In snapshot (Gemfile.lock):  
logstash-core (= 5.5.2)

In Gemfile:  
logstash-core-plugin-api (\>= 0) java depends on  
logstash-core (= 5.5.2) java

```
logstash-input-log4j2 (>= 0) java depends on
  logstash-core (< 2.0.0, >= 1.4.0) java

logstash-core (>= 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 "logstash":  
In Gemfile:  
logstash-input-log4j2 (\>= 0) java depends on  
logstash (\< 2.0.0, \>= 1.4.0) java  
Could not find gem 'logstash (\< 2.0.0, \>= 1.4.0) java', which is required by gem 'logstash-input-log4j2 (\>= 0) java', in any of the sources.

Please suggest me is any solution.

Thank you in advance.

---

<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:** [October 8, 2018, 12:37pm UTC](https://discuss.elastic.co/t/log4j-2-plugin-installation-error-in-version-6-2-2/147961/2 "2018-10-08T12:37:15Z")

</div>

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