Hi!
I'm trying to configure shield on an existing deployment (elasticsearch, marvel, shield; version 2.3.3).
As written in the documentation, I've in my config auto_create_index
configured:
action.auto_create_index: .marvel-*
- https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#enabling-index-creation
But when I try to launch elasticsearch I've this error:
[2016-06-02 13:20:57,437][INFO ][node ] [Needle] version[2.3.3], pid[1382], build[218bdf1/2016-05-17T15:40:04Z] [2016-06-02 13:20:57,437][INFO ][node ] [Needle] initializing ... [2016-06-02 13:20:57,895][ERROR][bootstrap ] Exception ElasticsearchException[Failed to load plugin class [org.elasticsearch.shield.ShieldPlugin]]; nested: InvocationTargetException; nested: IllegalArgumentException[the [action.auto_create_index] setting value [.marvel-es-*] is too restrictive. disable [action.auto_create_index] or set it to [.security]]; at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:483) at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:432) at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:129) at org.elasticsearch.node.Node.<init>(Node.java:158) at org.elasticsearch.node.Node.<init>(Node.java:140) at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.elasticsearch.plugins.PluginsService.loadPlugin(PluginsService.java:472) ... 8 more Caused by: java.lang.IllegalArgumentException: the [action.auto_create_index] setting value [.marvel-es-*] is too restrictive. disable [action.auto_create_index] or set it to [.security] at org.elasticsearch.shield.ShieldPlugin.validateAutoCreateIndex(ShieldPlugin.java:459) at org.elasticsearch.shield.ShieldPlugin.<init>(ShieldPlugin.java:126) ... 13 more
How I can configure .security
template?
Linked in security-index-template
,
curl http://admin:passw0rd@localhost:9200/_template/security-index-template?pretty
but seems empty
curl http://admin:passw0rd@localhost:9200/_template/.security?pretty { }
Thanks in advance!