# Cannot start bin/logstash

**URL:** https://discuss.elastic.co/t/cannot-start-bin-logstash/93143
**Category:** Logstash
**Created:** [July 14, 2017, 8:54am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143 "2017-07-14T08:54:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)
#### Post date: [July 14, 2017, 8:54am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/1 "2017-07-14T08:54:34Z")

</div>

I installed logstash through yum repo.

After installation I make config file in /etc/logstash/conf.d

when i started  
bin/logstash -f   
it outputs "No such file or directory"

---

<div class="post-metadata">

### Author: ![Vishal\_Sharma1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_sharma1/32/20207_2.png) [@Vishal\_Sharma1](https://discuss.elastic.co/u/Vishal_Sharma1)
#### Post date: [July 14, 2017, 9:10am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/2 "2017-07-14T09:10:06Z")

</div>

you need to change the directory to the logstash installation directory

$ cd /usr/share/logstash  
$ sudo bin/logstah -f /etc/logstash/conf.d/example.conf

or you can start it as service

$ sudo service logstash start

---

<div class="post-metadata">

### Author: ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)
#### Post date: [July 14, 2017, 9:19am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/3 "2017-07-14T09:19:26Z")

</div>

Thank you for the reply @Vishal_Sharma1!

I already started the logstash through

$service logstash start

How can I confirm that It is receiving/running correctly and the config file I made in  
conf.d is working fine?

---

<div class="post-metadata">

### Author: ![Vishal\_Sharma1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_sharma1/32/20207_2.png) [@Vishal\_Sharma1](https://discuss.elastic.co/u/Vishal_Sharma1)
#### Post date: [July 14, 2017, 9:27am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/4 "2017-07-14T09:27:30Z")

</div>

well  
$ ps aux | grep logstash

Also check logs at /var/log/logstash/logstash-plain.log

---

<div class="post-metadata">

### Author: ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)
#### Post date: [July 14, 2017, 9:36am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/5 "2017-07-14T09:36:48Z")

</div>

there's an error with the conf file

here's my conf file

```
    input{
     beats{
      host => "localhost"
      port => 5044
     }
    }
    filter{
     csv{
      separator => ","
       columns => ["logtime", "computer_name", "status"]
     }
    }

output {
 elasticsearch{
  host => "192.168.200.250"
  index => "sensor%{+YYYY.MM.dd}"
 }
stdout {
 codec => rubydebug
 }
}

```

The error is..

{:reason=\>Expected one of #, =\> at line 7, column 6 (byte 69) after input{\nbeats{\n host =\> "localhost"\n port =\> 5044\n}\nfilter {\n csv "}

---

<div class="post-metadata">

### Author: ![Vishal\_Sharma1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_sharma1/32/20207_2.png) [@Vishal\_Sharma1](https://discuss.elastic.co/u/Vishal_Sharma1)
#### Post date: [July 14, 2017, 9:38am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/6 "2017-07-14T09:38:48Z")

</div>

> [@jogoinar10](#):
>
> host =\> "192.168.200.250"

it should be hosts =\> "192.168.200.250"

---

<div class="post-metadata">

### Author: ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)
#### Post date: [July 14, 2017, 9:41am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/7 "2017-07-14T09:41:52Z")

</div>

Can I clear the logs in var/log/logstash/logstash-plain.log? So that it will be easy to check the current logs?

---

<div class="post-metadata">

### Author: ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)
#### Post date: [July 14, 2017, 9:42am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/8 "2017-07-14T09:42:19Z")

</div>

> [@Vishal\_Sharma1](#):
>
> it should be hosts =\> "192.168.200.250"

Thank you for your reply @Vishal_Sharma1. I already edited my config.

---

<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: [August 11, 2017, 9:42am UTC](https://discuss.elastic.co/t/cannot-start-bin-logstash/93143/9 "2017-08-11T09:42:29Z")

</div>

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