# Shield install for logstash

**URL:** https://discuss.elastic.co/t/shield-install-for-logstash/43886
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [March 9, 2016, 10:42am UTC](https://discuss.elastic.co/t/shield-install-for-logstash/43886 "2016-03-09T10:42:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rohan\_Jain](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@Rohan\_Jain](https://discuss.elastic.co/u/Rohan_Jain)
#### Post date: [March 9, 2016, 10:42am UTC](https://discuss.elastic.co/t/shield-install-for-logstash/43886/1 "2016-03-09T10:42:09Z")

</div>

it is required to configure logstash elasticsearch output for shield.  
For that the command to run is : =\> bin/plugin install logstash-output-elasticsearch-shield

After running this command i am getting error  
"  
Validating logstash-output-elasticsearch-shield  
Installing logstash-output-elasticsearch-shield  
Plugin version conflict, aborting  
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-output-elasticsearch":  
In snapshot (Gemfile.lock):  
logstash-output-elasticsearch (= 2.5.1)

In Gemfile:  
logstash-output-elasticsearch-shield (\>= 0) java depends on  
logstash-output-elasticsearch (\<= 0.1.9) java

```
logstash-output-elasticsearch (>= 0) java

```

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

After this i searched this error on google but dint get any solution unfortunately.  
After that tried to run =\> bundle update

But again i am getting error

Fetching gem metadata from [https://rubygems.org/](https://rubygems.org/)........  
Fetching version metadata from [https://rubygems.org/](https://rubygems.org/)...  
Fetching dependency metadata from [https://rubygems.org/](https://rubygems.org/)..  
Could not find gem 'logstash-core (= 2.2.2) ruby' in any of the gem sources listed in your Gemfile or available on this machine

Can anyone provide me with solution for this

---

<div class="post-metadata">

### Author: ![alvin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alvin/32/5607_2.png) [@alvin](https://discuss.elastic.co/u/alvin)
#### Post date: [March 9, 2016, 6:54pm UTC](https://discuss.elastic.co/t/shield-install-for-logstash/43886/2 "2016-03-09T18:54:32Z")

</div>

Hi Rohan - what protocol are you intending to use? The HTTP protocol is now default and recommended for the Elasticsearch output. With HTTP, the separate ES-shield output plugin isn't required; you just need to add a few [options](https://www.elastic.co/guide/en/shield/current/logstash.html#ls-http) in the ES output portion of your config.

---

<div class="post-metadata">

### Author: ![andrewvc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewvc/32/5064_2.png) [@andrewvc](https://discuss.elastic.co/u/andrewvc)
#### Post date: [March 10, 2016, 10:35pm UTC](https://discuss.elastic.co/t/shield-install-for-logstash/43886/3 "2016-03-10T22:35:38Z")

</div>

This is the wrong plugin, you want logstash-output-elasticsearch\_java-shield . You'll want to use that with the logstash-output-elasticsearch\_java plugin. logstash-output-elasticsearch-shield is for old versions of logstash / shield.

This should work with ES2.x+

---

<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 6, 2017, 1:46pm UTC](https://discuss.elastic.co/t/shield-install-for-logstash/43886/4 "2017-07-06T13:46:14Z")

</div>


