替代jdbc河和盾

时间:2015-04-16 12:50:51

标签: elasticsearch kibana elasticsearch-plugin elasticsearch-jdbc-river elasticsearch-shield

我的目标是拥有kibana 4的管理员权限。我希望我可以编辑内容并保存仪表板等...并与其他用户分享。 但我不希望其他用户应该能够保存我的仪表板或删除它等等......只有他们有权阅读。

我尝试过,我成功安装了插件屏蔽,以便在弹性搜索上进行身份验证,但基本上是在kibana 4上。我正确配置了用户和管理员的角色。 我通过logstash来保存数据,但是,对于mysql连接和jdbc-river-plugin,我发现jdbc和授权有错误:

[2015-04-16 11:19:39,096][WARN ][river.routing            ] [node_test] failed to get/parse _meta for [mysql_mantis]
org.elasticsearch.shield.authz.AuthorizationException: action [indices:data/read/get] is unauthorized for user [__es_system_user]
    at org.elasticsearch.shield.authz.InternalAuthorizationService.denial(InternalAuthorizationService.java:247)
    at org.elasticsearch.shield.authz.InternalAuthorizationService.authorize(InternalAuthorizationService.java:108)
    at org.elasticsearch.shield.action.ShieldActionFilter.apply(ShieldActionFilter.java:112)
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165)
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:82)
    at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:98)
    at org.elasticsearch.client.support.AbstractClient.get(AbstractClient.java:193)
    at org.elasticsearch.action.get.GetRequestBuilder.doExecute(GetRequestBuilder.java:201)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
    at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:73)
    at org.elasticsearch.river.routing.RiversRouter.updateRiverClusterState(RiversRouter.java:137)
    at org.elasticsearch.river.routing.RiversRouter$1.execute(RiversRouter.java:108)
    at org.elasticsearch.river.cluster.RiverClusterService$1.run(RiverClusterService.java:110)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

我解释说,在没有安装shield-plugin之前,一切都运行良好。 我读到它与shield-plugin和jdbc-river-plugin不兼容。

它存在一种与身份验证和mysql连接兼容的替代方案,所以使用shield-plugin或jdbc-river-plugin是另一种选择? 使用shield-plugin,我冒着在30天内发现其他错误的风险,因为它是试用版。

我可以用LDAP-river-plugin或者elasticsearch-security-plugin或其他替换shield-plugin吗? 我可以用mongodb-river-plugin或者couchdb-river-plugin或其他替换jdbc-river-plugin吗?

谢谢!

0 个答案:

没有答案