I've just installed shield plugin (2.0) according to the documentation:
-stopped all nodes
-installed shield on all nodes
-started all nodes
-added an admin user using esusers
I also verified it as per documentation:
[2015-12-11 03:07:45,133][INFO ][http ] [XXXX] Using [org.elasticsearch.http.netty.NettyHttpServerTransport] as http transport, overridden by [shield]
[2015-12-11 03:07:45,358][INFO ][transport ] [XXXX] Using [org.elasticsearch.shield.transport.ShieldServerTransportService] as transport service, overridden by [shield]
[2015-12-11 03:07:45,358][INFO ][transport ] [XXXX] Using [org.elasticsearch.shield.transport.netty.ShieldNettyTransport] as transport, overridden by [shield]
However, the cluster is still fully open, I can still send requests without the need for username and password. Logstash is also sending data to Elasticsearch without authentication! What am I missing here?
Did you copy the shield configuration files on all the nodes?
Shield is supposed to protect your cluster as soon as it is installed (along with license plugin). An unprotected cluster often means that the plugin has not been correctly installed or you're targeting another cluster.
I have a basic license for the time being, is it because of that? Shield works with Trial license so I thought it should work with basic license too. Maybe it actually doesnt?
i dont know what is basic license ! when i run the command curl 'http://localhost:9200/_license'
in kibana it is showing like
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "No feature for name [_license]"
}
],
"type": "illegal_argument_exception",
"reason": "No feature for name [_license]"
},
"status": 400
}
but if try like GET /_nodes/_license it is showing like
hi Steve , i restarted the elastic search and service also several times ! no i installed plugins properly in offline mode ,and it was created the license file and plugin file in D:\elasticsearch-2.3.1\plugins location
From your first post, it looks like the instance of Elasticsearch that is running doesn't have the plugins installed.
Can you stop Elasticsearch, and verify that no other instances are still running? If Kibana/Sense are still working, then there is another instance of ES still running and it needs to be stopped first.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.