# Elasticsearch for Windows 10 - arrghh

**URL:** https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629
**Category:** Elasticsearch
**Created:** [March 27, 2023, 2:45pm UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629 "2023-03-27T14:45:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AndyJay1](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@AndyJay1](https://discuss.elastic.co/u/AndyJay1)
#### Post date: [March 27, 2023, 2:45pm UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629/1 "2023-03-27T14:45:13Z")

</div>

Hi all.  
I'm trying to install (run) elasticsearch 8.6.2 on my local Windows 10 machine.  
I'm installing Magento 2.4.5 whcih requires elasticsearch.  
Starting elasticsearch.bat as the administrator (and a user) just won't start it.  
I have the log files elasticsearch.log and gc.log but neither make much sense to me.  
Could someone point me in the right direction on how to install elasticsearch for Windows please?  
Preferably as an install rather than manually running the .bat file.  
Many thanks in advance  
Andy

PS -  
When I run the elasticsearch.bat as the user and try to bypass the username and password that localhost:9200 asks for, I get:

| error | |
| --- | --- |
| root\_cause | |
| 0 | |
| type | security\_exception |
| reason | unable to authenticate user [andy] for REST request [/] |
| header | |
| WWW-Authenticate | |
| 0 | 'Basic realm=security charset=UTF-8' |
| 1 | ApiKey |
| type | security\_exception |
| reason | unable to authenticate user [andy] for REST request [/] |
| header | |
| WWW-Authenticate | |
| 0 | 'Basic realm=security charset=UTF-8' |
| 1 | ApiKey |
| status | 401 |

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 27, 2023, 3:22pm UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629/2 "2023-03-27T15:22:53Z")

</div>

> [@AndyJay1](#):
>
> I have the log files elasticsearch.log and gc.log but neither make much sense to me

Please share the `elasticsearch.log` .

> [@AndyJay1](#):
>
> I'm trying to install (run) elasticsearch 8.6.2 on my local Windows 10 machine.

Which documentation are you following? Are you following the [official documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html)?

Check the part on how to run elasticsearch [as a service](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#windows-service) in windows.

---

<div class="post-metadata">

### Author: ![AndyJay1](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@AndyJay1](https://discuss.elastic.co/u/AndyJay1)
#### Post date: [March 27, 2023, 3:42pm UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629/3 "2023-03-27T15:42:57Z")

</div>

Hi Leandrojmp  
Thank you for that.  
I thin I followed the wrong online advice.  
I'll look at the link you supplied.  
I do want to run it as a service rather than manually every time.  
I'll get back when I've tried.  
Thanks again  
Andy

---

<div class="post-metadata">

### Author: ![AndyJay1](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@AndyJay1](https://discuss.elastic.co/u/AndyJay1)
#### Post date: [March 29, 2023, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629/4 "2023-03-29T09:10:11Z")

</div>

Hi Leandrojmp  
I have followed your link and successfully installed elasticsearch on Windows 10 as a service 🙂 So thank you for your help.  
The resaon for needing elasticsearch is I'm installing Magento 2 on my local Xampp.  
When trying to install Magento I'm seeing this error:  
In SearchConfig.php line 81:  
Could not validate a connection to Elasticsearch. Unknown 401 error from Elasticsearch null  
Any ideas what this is?  
Thanks again  
Andy

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 26, 2023, 9:10am UTC](https://discuss.elastic.co/t/elasticsearch-for-windows-10-arrghh/328629/5 "2023-04-26T09:10:35Z")

</div>

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