Disable shield plugin?


(Tarunsapra) #1

Hi All,

I installed the shield plugin few days back and currently I am evaluating it, is there a way to completely disable the plugin instead of removing it?

Thanks,


(Martijn Van Groningen) #2

you can configure the following in the elasticsearch.yml file:
shield.enabled: false

This will prevent the plugin from loading.


(Abhijit) #3

this does not work with elasticsearch 2.3.1, i get

Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ScannerException[while scanning a simple key
in 'reader', line 39, column 1:
shield.enabled:false
^
could not find expected ':'
in 'reader', line 40, column 1:
shield:
^
];
Likely root cause: while scanning a simple key
in 'reader', line 39, column 1:
shield.enabled:false
^
could not find expected ':'
in 'reader', line 40, column 1:
shield:
^


(David Pilato) #4

I think (unsure though) that you are missing a space after the comma: shield.enabled: false.


(Sam) #5

Is there a way to disable shield using API?


(Sam) #6

Just wanted to check if is there a way to disable shield using API?


(David Pilato) #7

I hope not!


(Simbarashe Barry Makwangudze) #8

to remove shield

[root@XXXX elasticsearch]# bin/plugin remove shield
-> Removing shield...
Removed shield


(Vramakrishnan) #9

Is this plugin remove command safe to execute on a cluster where things are up and running ?

Is there a REST API to disable and remove the plugin ?

Also can please let me know how where this command needs to be executed. we have a setup with elkclient node, elk master nodes and elk data nodes. elk client node is the REST front end and should it be run here ?


(system) #10