ElasticSearch 8.5.3 installation windows

Hi Team,

I am new to Elasticsearch and Kibana. I using windows and downloaded the elasticsearch 8.5.3 version zip file. After unzip I run the elasticsearch.bat file in command prompt. It generates token, username and password. After generates it throws error and not able to start using http://localhost:9200.

I followed below steps in elasticsearch.yaml file to fix.

xpack.security.enabled: true

xpack.security.enrollment.enabled: true

Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents

xpack.security.http.ssl:
enabled: false
keystore.path: certs/http.p12

Enable encryption and mutual authentication between cluster nodes

xpack.security.transport.ssl:
enabled: false
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12

Create a new cluster with the current node only

Additional nodes can still join the cluster later

cluster.initial_master_nodes: ["L-INE-7YRCQG3"]

Allow HTTP API connections from anywhere

Connections are encrypted and require user authentication

http.host: 0.0.0.0

I created the user, user role in corresponding files.

After changing this I can be able to work on the elasticsearch using http://localhost:9200

When I install the kibana and start it throws error.

[ERROR][savedobjects-service] [.kibana] Action failed with 'security_exception: [security_exception] Reason: action [indices:admin/create] is unauthorized for user [krishna] with effective roles [admins] (assigned roles [monitoring,network] were not found) on restricted indices [.kibana_8.5.3_001], this action is granted by the index privileges [create_index,manage,all]'. Retrying attempt 4 in 16 seconds.

Welcome to our community! :smiley:
Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

What files? How did you actually create them?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.