我正在使用弹性搜索的基本许可证,并在没有安全性的情况下进行本地部署。\n我想开始使用 Kibana 7.9 中的警报和操作。\n我已xpack.encryptedSavedObjects.encryptionKey按照此处的文档设置了值
在 kibana.yml 文件中添加 encrytionKey 后,我重新启动了 kibana。
\n我仍然遇到与 \xe2\x80\x9cYou 必须设置加密密钥\xe2\x80\x9d 相同的错误
\n\n任何线索将不胜感激。
\n而且kibana重启后就崩溃了。需要恢复 kibana.yml。
\n我目前正在尝试通过浏览器远程访问我的 Kibana 仪表板。因此,用户可以远程监控索引并运行脚本。作为背景,我的弹性当前在 Windows 服务器上运行,我可以通过更新elasticsearch.yml并打开端口9200成功设置“弹性 uri 搜索”(例如 http://[IP_ADDRESS]:9200)远程访问。为此,我采取了类似的操作来远程访问 Kibana,更新kibana.yml并打开端口5601,但我无法从本地计算机上的浏览器上远程访问 kibana。它会在浏览器上抛出ERR_CONNECTION_TIMED_OUT 。查看我为 kibana.yml 更新的属性:
server.port: "5601"
server.host: "0.0.0.0"
elasticsearch.url: "http://localhost:9200"
Run Code Online (Sandbox Code Playgroud) 我们正在构建一个需要Elasticsearch安全功能的开源应用程序。我正在尝试查找安全功能是否免费用于弹性搜索。弹性搜索网站说Xpack现在开放。不知道它是否真的是开源的。
有人可以分享您的经验吗?
我用Debian软件包安装了Elasticsearch,并在其中安装了X-pack。现在,我要验证X-Pack是否已成功安装。
有一种简单的方法可以验证这一点吗?
概述:
我尝试了 API 和本地 Elasticsearch 之间的非安全连接,一切正常。为了确保连接安全,我执行了以下步骤在我的弹性体上添加 xpack 插件并在 api 中使用它:
我的代码在弹性配置中发生了变化:
@Bean
public TransportClient transportClient() throws UnknownHostException {
Settings settings = Settings.builder()
.put("cluster.name", clusterName)
.put("xpack.security.user", "api:apipass")
.build();
try (TransportClient client = new PreBuiltXPackTransportClient(settings)
.addTransportAddress(new TransportAddress(InetAddress.getByName(host), tcpPort))) {
String token = basicAuthHeaderValue("api", new SecureString("apipass".toCharArray()));
client.filterWithHeader(Collections.singletonMap("Authorization", token))
.prepareSearch().get();
return client;
}
}
Run Code Online (Sandbox Code Playgroud)
问题:
当尝试通过应用程序运行弹性查询时,将引发以下异常:
Caused by: java.lang.IllegalStateException: transport client is closed
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:243) ~[elasticsearch-6.0.0.jar:6.0.0]
at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59) ~[elasticsearch-6.0.0.jar:6.0.0]
at …Run Code Online (Sandbox Code Playgroud) elasticsearch elasticsearch-plugin spring-boot spring-data-elasticsearch elasticsearch-x-pack