# Help with installing logstash - no such file to load --logstash/build

**URL:** https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572
**Category:** Logstash
**Created:** [January 8, 2021, 7:26pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572 "2021-01-08T19:26:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Grant1999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant1999/32/81534_2.png) [@Grant1999](https://discuss.elastic.co/u/Grant1999)
#### Post date: [January 8, 2021, 7:26pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/1 "2021-01-08T19:26:07Z")

</div>

When in the logstash folder I have tried to install logstash with the command. logstash -f logstash.conf and get the error no such file to load --logstash/build. I have supplied a screenshot. If anyone could help that would be amazing thanks

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/1/71d3bf75557cac110030f65e7818e4450e5d42f6.png)

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [January 8, 2021, 8:14pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/2 "2021-01-08T20:14:32Z")

</div>

With that command you are trying to start Logstash and execute the file you put in the command line `logstash.conf`. Does that file exist in the same directory that you executed this command?

---

<div class="post-metadata">

### Author: ![Grant1999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant1999/32/81534_2.png) [@Grant1999](https://discuss.elastic.co/u/Grant1999)
#### Post date: [January 8, 2021, 9:09pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/3 "2021-01-08T21:09:43Z")

</div>

the logstash.conf file is located in the bin directory. I've tried running the command from the bin directory aswell

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [January 8, 2021, 9:33pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/4 "2021-01-08T21:33:19Z")

</div>

Can you post the contents of `logstash.conf`?

---

<div class="post-metadata">

### Author: ![Grant1999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grant1999/32/81534_2.png) [@Grant1999](https://discuss.elastic.co/u/Grant1999)
#### Post date: [January 8, 2021, 9:37pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/5 "2021-01-08T21:37:32Z")

</div>

```auto
input {
 stdin {}
}

output
   elasticsearch {
       hosts => ["localhost:9200"]
       index => "indexforlogstash"
 }
}

```

---

<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: [February 5, 2021, 9:37pm UTC](https://discuss.elastic.co/t/help-with-installing-logstash-no-such-file-to-load-logstash-build/260572/6 "2021-02-05T21:37:35Z")

</div>

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