# Logstash not starting

**URL:** https://discuss.elastic.co/t/logstash-not-starting/316188
**Category:** Logstash
**Created:** [October 10, 2022, 8:16am UTC](https://discuss.elastic.co/t/logstash-not-starting/316188 "2022-10-10T08:16:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sandeep\_singh3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandeep_singh3/32/111870_2.png) [@sandeep\_singh3](https://discuss.elastic.co/u/sandeep_singh3)
#### Post date: [October 10, 2022, 8:16am UTC](https://discuss.elastic.co/t/logstash-not-starting/316188/1 "2022-10-10T08:16:43Z")

</div>

I am trying to run Logstash on my window machine but unable to do so due below error

**\Eclipse was unexpected at this time.**

Command used to run the logstash

**logstash.bat -f logstash.conf**

Version of Logstash - **7.16.3**

logstash.conf entry -

# Sample Logstash configuration for creating a simple

# Beats -\> Logstash -\> Elasticsearch pipeline.

input {  
stdin {}  
}

output {  
elasticsearch {  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
index =\> "sample\_records1"  
}  
}

Please let me know if any other information required.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 10, 2022, 3:43pm UTC](https://discuss.elastic.co/t/logstash-not-starting/316188/2 "2022-10-10T15:43:19Z")

</div>

> [@sandeep\_singh3](#):
>
> below error
> 
> **\Eclipse was unexpected at this time.**

Do you have a space embedded in the path to the logstash directory? This is not supported.

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [October 10, 2022, 5:44pm UTC](https://discuss.elastic.co/t/logstash-not-starting/316188/3 "2022-10-10T17:44:57Z")

</div>

Use the command:  
`C:\ELK\Logstash\bin\logstash.bat -f C:\ELK\Logstash\conf.d\logstash.conf --path.settings C:\ELK\Logstash\Config`

Change c:\elk to your paths

---

<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: [November 7, 2022, 5:45pm UTC](https://discuss.elastic.co/t/logstash-not-starting/316188/4 "2022-11-07T17:45:33Z")

</div>

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