# 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_HOME` set to the Java installation path\
  **Reference:** Follow the \[[Java Installation Guide on Windows](/deployment-and-maintenance/installation/java-17.x-on-windows-machine.md)] 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.zip
```

Extract the contents to a preferred location, for example:

```
C:\elasticsearch-7.17.x
```

<figure><img src="/files/O2mHxEBptcCFwM0TJJsT" alt=""><figcaption></figcaption></figure>

### Install Elasticsearch as a Windows Service

1. Open **Command Prompt** as Administrator.
2. Navigate to the Elasticsearch `bin` directory:<br>

   ```cmd
   cd C:\elasticsearch-7.17.x\bin
   ```

   <figure><img src="/files/W4nT1kSq0rPcTwTfpAd5" alt=""><figcaption></figcaption></figure>
3. Run the service installation command:<br>

   ```cmd
   elasticsearch-service.bat install
   ```

   <figure><img src="/files/VpuBvzdCebcQSbkRT880" alt=""><figcaption></figcaption></figure>

### Configure JVM Heap Settings

1. Navigate to the configuration directory:<br>

   ```
   C:\elasticsearch-7.17.x\config
   ```

   <figure><img src="/files/ujDFg9i0p4TN2ipMsBou" alt=""><figcaption></figcaption></figure>
2. Open **jvm.options** in a text editor (e.g., Notepad++).
3. Uncomment and update the following values based on available memory:<br>

   ```
   -Xms4g
   -Xmx4g
   ```

   <figure><img src="/files/mfSuBNUbpskBjcsPdFOD" alt=""><figcaption></figcaption></figure>

> **Recommendation:** Allocate 50% of available system RAM (maximum 32 GB).

### Configure Elasticsearch Settings

1. Open **elasticsearch.yml** located in the same `config` folder.
2. Add or update the following properties:<br>

   ```yaml
   cluster.name: ovaledge
   network.host: 0.0.0.0
   transport.host: localhost
   transport.tcp.port: 9300
   http.port: 9200
   xpack.security.enabled: true
   ```

   <figure><img src="/files/HuLLgMfQ5cA2m2rUGmOk" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/NCLcpa8P6TcuMV5bfSNx" alt=""><figcaption></figcaption></figure>
3. Save and close the file.

### Start the Elasticsearch Service

1. Open the **Windows Services Manager** (`Win + R → services.msc`).
2. Locate the **Elasticsearch** service.<br>

   <figure><img src="/files/bFNxT19yrfrxvWPs77nk" alt=""><figcaption></figcaption></figure>
3. Right-click and select **Start**.

### Set Password for the Elastic User

1. Navigate to the Elasticsearch `bin` folder.<br>

   <figure><img src="/files/aUjp9M2jDWZ9VDOszzjA" alt=""><figcaption></figcaption></figure>
2. Open **Command Prompt** in that directory and run:<br>

   ```cmd
   elasticsearch-reset-password interactive
   ```

   <figure><img src="/files/IXGQygD5uZHujEzKg99V" alt=""><figcaption></figcaption></figure>
3. When prompted, press **y** to continue.<br>

   <figure><img src="/files/UTnRENETzkLav5YBAg7v" alt=""><figcaption></figcaption></figure>
4. Set a password for the `elastic` user.<br>

   <figure><img src="/files/vJbvVt3zuyQFGgYflrnT" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** The utility may require multiple confirmations (\~12 times).
{% endhint %}

### Verify Installation

1. Open a web browser and navigate to:

   ```
   http://localhost:9200
   ```
2. When prompted, enter credentials:
   * **Username:** elastic
   * **Password:** (as configured in the previous step)<br>

     <figure><img src="/files/3DGzxvGS3DdUBXJCYHHT" alt=""><figcaption></figcaption></figure>
3. A successful installation returns a JSON response with cluster metadata.<br>

   <figure><img src="/files/k5izJq6iVf0Z6sx31hSY" alt=""><figcaption></figcaption></figure>

***

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ovaledge.com/deployment-and-maintenance/installation/elasticsearch-7.17.x-on-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
