Complete elasticsearch yml file is not downloaded

Hi , I have installed Elasticsearch (8.3) with rpm repo and it installed properly. While setting up the authentication I have faced some challenges and i have uninstalled Elasticsearch.

command used to remove elasticsearch- "yum remove elasticsearch "
and then removed all the files from server.

Again i have installed the same version and used same steps. But this time is didnt install properly.
In Elasticsearch.yml file security related parameter are not present.

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically
# generated to configure Elasticsearch security features on 28-06-2022 06:17:27
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: false

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: true
  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: ["elkesapp1"]

# Allow HTTP API connections from anywhere
# Connections are encrypted and require user authentication
http.host: 0.0.0.0

# Allow other nodes to join the cluster from anywhere
# Connections are encrypted and mutually authenticated
#transport.host: 0.0.0.0

#----------------------- END SECURITY AUTO CONFIGURATION -------------------------

This section is completely missing in Elasticsearch.yml file.

Even if I start Elasticsearch its not showing any information about elastic user in the logs.

So default user credentials and TLS setting are not coming.

Looks like I didn't uninstall the Elasticsearch properly.

Any idea how to resolve this issue.

Unless you do a yum purge then files will likely still exist.

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