Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install Search Guard plugin for Elasticsearch-5.x

Due to the restrictions, I was not allowed to install any packages from internet. So, This command is not useful for me inorder to install search-guard.

 bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:<version>

However, I am able to install Search Guard successfully on a different network by running the above command.

Because of this reason, I tried installing Search Guard from tar.gz or zip file by the below command as per documentation.

 /usr/share/elasticsearch# bin/elasticsearch-plugin install     file:///home/xxxx/xxxx/search-guard-5-5.2.0-10-sgadmin-standalone.zip 

This one is failing with the below error.

 -> Downloading file:///home/xxx/xxxx/search-guard-5-5.2.0-10-  sgadmin-standalone.zip
 [=================================================] 100%   
 ERROR: `elasticsearch` directory is missing in the plugin zip

I downloaded zip/tar.gz from this maven repository of search gaurd.

Is anyone also facing the same issue. If not, kindly help in solving this one.

like image 233
hello world Avatar asked Feb 21 '17 01:02

hello world


People also ask

What is search Guard in Elasticsearch?

What is Search Guard? Search Guard is an Open Source security plugin for Elasticsearch and the entire ELK stack that offers encryption, authentication, authorization, audit logging, multi-tenancy, and compliance features.

How do I update Elasticsearch plugins?

There is no way to update an existing plugin. You need to delete the old version and install the new one.


1 Answers

Download this file from maven to /home/xxxx: https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.0-11/search-guard-5-5.2.0-11.zip

Install it:

bin/elasticsearch-plugin install -b file:///home/xxxx/search-guard-5-5.2.0-11.zip

Other releases are available here: https://oss.sonatype.org/content/repositories/releases/com/floragunn/

like image 123
Search Guard Avatar answered Nov 15 '22 08:11

Search Guard