# Cannot restart logstash

**URL:** <https://discuss.elastic.co/t/cannot-restart-logstash/104508>\
**Category:** Logstash\
**Created:** [October 19, 2017, 7:33am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508 "2017-10-19T07:33:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neal1991](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neal1991/32/23178_2.png) [@neal1991](https://discuss.elastic.co/u/neal1991)\
**Post date:** [October 19, 2017, 7:33am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/1 "2017-10-19T07:33:22Z")

</div>

I am config a logstash to obtains logs from a client. But now there is a problem with logstah. There is error information in `/var/log/logstash`:

```auto
logstash.agent cannot create pipeline{reson:"Expected one of #, input, filter, output at line 1, column 1

```

The `elasticsearch-output.conf` is

```auto
output {
elasticsearch { hosts => ["localhost:9200"]
hosts => "localhost:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
``
And I have use `df -h` to see the files see the space. It seems that there is still enough space. Can anyone explain this? Thanks.
```

---

<div class="post-metadata">

**Author:** ![neal1991](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neal1991/32/23178_2.png) [@neal1991](https://discuss.elastic.co/u/neal1991)\
**Post date:** [October 19, 2017, 7:35am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/2 "2017-10-19T07:35:51Z")

</div>

the logstash version is 5.5.1, run on centOS 7

---

<div class="post-metadata">

**Author:** ![neal1991](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neal1991/32/23178_2.png) [@neal1991](https://discuss.elastic.co/u/neal1991)\
**Post date:** [October 19, 2017, 8:51am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/3 "2017-10-19T08:51:49Z")

</div>

I have fixed this problem

---

<div class="post-metadata">

**Author:** ![lkofman](https://avatars.discourse-cdn.com/v4/letter/l/b9e5f3/32.png) [@lkofman](https://discuss.elastic.co/u/lkofman)\
**Post date:** [October 19, 2017, 3:14pm UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/4 "2017-10-19T15:14:08Z")

</div>

what was the problem -I have same problem with version 6?

---

<div class="post-metadata">

**Author:** ![neal1991](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neal1991/32/23178_2.png) [@neal1991](https://discuss.elastic.co/u/neal1991)\
**Post date:** [October 20, 2017, 11:55am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/5 "2017-10-20T11:55:51Z")

</div>

you should see the log of logstash. And you can see the error hints. My problem is the config in conf.d for logstash. @lkofman

---

<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 17, 2017, 11:56am UTC](https://discuss.elastic.co/t/cannot-restart-logstash/104508/6 "2017-11-17T11:56:12Z")

</div>

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