# When I'm trying to install logstash 6. 0 .0

**URL:** https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142
**Category:** Logstash
**Created:** [December 25, 2017, 10:19am UTC](https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142 "2017-12-25T10:19:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)
#### Post date: [December 25, 2017, 10:19am UTC](https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142/1 "2017-12-25T10:19:42Z")

</div>

When I'm trying to install logstash i.e I have unzipped the directory in c:\Program Files and I have created sample.conf and I tried to run that sample.conf file using bin/logstash -f sample.conf but it is throwing me following error

**bin' is not recognized as an internal or external command,**  
**operable program or batch file.**

---

<div class="post-metadata">

### Author: ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)
#### Post date: [December 27, 2017, 12:55am UTC](https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142/2 "2017-12-27T00:55:24Z")

</div>

if you're running `bin/logstash -f sample.conf` bash is trying to look in your current directory for a `bin` directory and then for the `logstash` binary inside of that. i'm guessing it can't find it. you need to give it an absolute path to wherever the binary is. i installed with apt-get, so mine is `/usr/share/logstash/bin/logstash`

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [December 27, 2017, 10:13am UTC](https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142/3 "2017-12-27T10:13:27Z")

</div>

> When I'm trying to install logstash i.e I have unzipped the directory in c:\Program Files and I have created sample.conf and I tried to run that sample.conf file using bin/logstash -f sample.conf but it is throwing me following error

Those instructions assume that the Logstash installation directory is the current directory in your command prompt. Since you're on Windows using a backslash instead of a forward slash would be more correct, although I think either would work in this case.

---

<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: [January 24, 2018, 10:13am UTC](https://discuss.elastic.co/t/when-im-trying-to-install-logstash-6-0-0/113142/4 "2018-01-24T10:13:50Z")

</div>

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