ElasticSearch Version: elasticsearch-8.6.2-1.x86_64
Logstash Version: logstash-oss-8.6.2-1.x86_64
Kibana Version: kibana-8.6.2-1.x86_64
Searchguard Version:
- search-guard-flx-elasticsearch-plugin-1.1.1-es-8.6.2.zip
- search-guard-flx-kibana-plugin-1.1.0-es-8.6.2.zip
OS: Red Hat Enterprise Linux release 8.4 (Ootpa)
Issue:
I’m trying to install searchguard from the steps listed here
In the “Initializing Searchguard” steps, I go to the Using sgctl | Security for Elasticsearch | Search Guard and then click “Basic Usage”
I’m currently on the “Connection Settings” step and trying to run the connect
sh sgctl-1.1.0.sh connect elasticsearch.myhost.com --cert /etc/kibana/server.crt --key /etc/kibana/server.key --ca-cert /etc/kibana/root.crt --insecure -c node1 --debug
Search Guard not initialized (SG11). See Basic Usage | Security for Elasticsearch | Search Guard
Server is unavailable: Service Unavailable
com.floragunn.searchguard.sgctl.SgctlException: Server is unavailable: Service Unavailable
at com.floragunn.searchguard.sgctl.commands.ConnectingCommand.getClient(ConnectingCommand.java:131)
at com.floragunn.searchguard.sgctl.commands.Connect.call(Connect.java:37)
at com.floragunn.searchguard.sgctl.commands.Connect.call(Connect.java:29)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at com.floragunn.searchguard.sgctl.SgctlTool.exec(SgctlTool.java:63)
at com.floragunn.searchguard.sgctl.SgctlTool.main(SgctlTool.java:58)
Caused by: com.floragunn.searchguard.sgctl.client.ServiceUnavailableException: Service Unavailable
at com.floragunn.searchguard.sgctl.client.SearchGuardRestClient$Response.checkStatus(SearchGuardRestClient.java:421)
at com.floragunn.searchguard.sgctl.client.SearchGuardRestClient$Response.parseResponseBy(SearchGuardRestClient.java:396)
at com.floragunn.searchguard.sgctl.client.SearchGuardRestClient.authInfo(SearchGuardRestClient.java:84)
at com.floragunn.searchguard.sgctl.commands.ConnectingCommand.getClient(ConnectingCommand.java:119)
The steps say at this point I should be connected to the service, but I keep getting the above error message.
The elasticsearch-cluster.log prints out the message
[ERROR][c.f.s.a.r.AuthenticatingRestFilter] [node1] Not yet initialized (you may need to run sgctl)
elasticsearch.yml (with the hostname changed and the comments removed)
cluster.name: elastic-cluster
node.name: node1
path.data: /data/elasticsearch
path.logs: /var/log/elasticsearch
network.host: elasticsearch.myhost.com
http.port: 9200
xpack.security.enabled: false
ingest.geoip.downloader.enabled: false
discovery.type: single-node
search.max_buckets: 20000000
searchguard.disabled: false
searchguard.enterprise_modules_enabled: false
searchguard.ssl.transport.pemkey_filepath: server.key
searchguard.ssl.transport.pemcert_filepath: server.crt
searchguard.ssl.transport.pemtrustedcas_filepath: root.crt
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.http.enabled: true
searchguard.ssl.http.pemkey_filepath: server.key
searchguard.ssl.http.pemcert_filepath: server.crt
searchguard.ssl.http.pemtrustedcas_filepath: root.crt
searchguard.authcz.admin_dn:
- “CN=*.myhost.com,OU=Domain Control Validated”
searchguard.nodes_dn: - “CN=*.myhost.com”
searchguard.restapi.roles_enabled: [“SGS_ALL_ACCESS”]
Does anyone know what I missed when trying to initialize SearchGuard?
Thanks for your help