Elasticsearch 7.17.x on RHEL 8+

This article provides a comprehensive guide for installing Elasticsearch version 7.17.x on Ubuntu 22.04, Amazon Linux, and RHEL 8.x systems. It includes prerequisites, installation steps, configuration instructions, and integration steps with the OvalEdge application.

Hardware Requirements

  • Minimum 4 GB RAM (8 GB recommended)

  • Minimum 2 vCPUs

  • 10 GB available disk space

Prerequisites

  • Ubuntu system with version 22.04 or later

  • User with sudo privileges

  • Stable internet connection

  • Java 17 installed (or to be installed during the process)

Elasticsearch Installation on RHEL 8.x

Install Java 17

  • Elasticsearch requires Java 17. Install it with the following command. If Java is already installed, verify using the version check command.

    sudo yum install java-17-openjdk -y  

    java -version 

Import the Elasticsearch GPG Key

  • Add the official GPG key to verify package authenticity.

Add the Elasticsearch YUM Repository

  • Create the repository file for Elasticsearch packages:

  • Insert the following content:

Ensure there are no typos in the baseurl or gpgkey to avoid installation issues.

Install Elasticsearch

  • Update the package index and install Elasticsearch:

Enable and Start the Elasticsearch Service

  • Reload the systemd configuration to register the new service.

  • Enable Elasticsearch to start on system boot:

  • Enable Elasticsearch to start on system boot:

  • Start the service and verify its status:

  • At this point, Elasticsearch is installed and running.

Configure Elasticsearch

Update elasticsearch.yml

  • Edit the configuration file at /etc/elasticsearch/elasticsearch.yml:

  • Add or modify the following settings:

These settings configure the node to:

  • Be accessible from external networks (network.host: 0.0.0.0)

  • Use custom cluster and port settings

  • Enable security features for authentication

Restart Elasticsearch

  • Restart the service to apply the configuration changes:

Setting Up Passwords

To secure the installation, set passwords for the built-in reserved users. These accounts are used by Elastic Stack components for internal authentication.

Run the Password Setup Script

  • Use interactive mode to configure passwords:

When prompted:

  • Press y to continue

  • Provide passwords for the following users:

    • elastic, kibana_system, logstash_system, beats_system, apm_system, remote_monitoring_user

  • It is recommended to use the same password for all users for ease of configuration unless stricter separation is required.

Note: Store these credentials securely, as they are required for configuring clients such as Kibana, Logstash, and OvalEdge.

Integration with the OvalEdge Application

Locate and Open the Configuration File

  • Navigate to the extprop directory inside the OvalEdge installation folder:

Update Elasticsearch Properties

  • Modify or add the following entries:

  • es.host: Use localhost if Elasticsearch is on the same VM as OvalEdge. Otherwise, provide the server’s IP address.

  • es.password: Use the password configured for the elastic user.

Restart Tomcat

  • After saving the changes, restart Tomcat:


Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.

Last updated

Was this helpful?