Elasticsearch 7.17.x on Windows
Elasticsearch is a distributed, RESTful search and analytics engine designed for scalability, real-time performance, and high availability. It is widely used for log analysis, full-text search, and data indexing. This article provides step-by-step instructions for installing and configuring Elasticsearch 7.17.x on a Windows system.
Prerequisites
Before proceeding with the installation, ensure the following requirements are met:
Operating System: Windows 10 or later (64-bit)
Administrative Access: Required for installation and service configuration
Java Development Kit (JDK): Java 17 installed and configured
Environment Variable:
JAVA_HOMEset to the Java installation path Reference: Follow the [Java Installation Guide on Windows] for setup instructions.
Installation Steps
Download Elasticsearch
Download Elasticsearch 7.17.x from the official OvalEdge repository:
https://ovaledge.s3.us-west-1.amazonaws.com/scripts/packages/elasticsearch-7.17.26-windows-x86_64.zipExtract the contents to a preferred location, for example:
C:\elasticsearch-7.17.x
Install Elasticsearch as a Windows Service
Open Command Prompt as Administrator.
Navigate to the Elasticsearch
bindirectory:cd C:\elasticsearch-7.17.x\bin
Run the service installation command:
elasticsearch-service.bat install
Configure JVM Heap Settings
Navigate to the configuration directory:
C:\elasticsearch-7.17.x\config
Open jvm.options in a text editor (e.g., Notepad++).
Uncomment and update the following values based on available memory:
-Xms4g -Xmx4g
Recommendation: Allocate 50% of available system RAM (maximum 32 GB).
Configure Elasticsearch Settings
Open elasticsearch.yml located in the same
configfolder.Add or update the following properties:
cluster.name: ovaledge network.host: 0.0.0.0 transport.host: localhost transport.tcp.port: 9300 http.port: 9200 xpack.security.enabled: true

Save and close the file.
Start the Elasticsearch Service
Open the Windows Services Manager (
Win + R → services.msc).Locate the Elasticsearch service.

Right-click and select Start.
Set Password for the Elastic User
Navigate to the Elasticsearch
binfolder.
Open Command Prompt in that directory and run:
elasticsearch-reset-password interactive
When prompted, press y to continue.

Set a password for the
elasticuser.
Verify Installation
Open a web browser and navigate to:
http://localhost:9200When prompted, enter credentials:
Username: elastic
Password: (as configured in the previous step)

A successful installation returns a JSON response with cluster metadata.

Copyright © 2025, OvalEdge LLC, Peachtree Corners, GA, USA.
Last updated
Was this helpful?

