# Config works from CLI, doesn't work when running Logstash as a service

**URL:** <https://discuss.elastic.co/t/config-works-from-cli-doesnt-work-when-running-logstash-as-a-service/155810>\
**Category:** Logstash\
**Created:** [November 8, 2018, 2:33am UTC](https://discuss.elastic.co/t/config-works-from-cli-doesnt-work-when-running-logstash-as-a-service/155810 "2018-11-08T02:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [November 8, 2018, 2:33am UTC](https://discuss.elastic.co/t/config-works-from-cli-doesnt-work-when-running-logstash-as-a-service/155810/1 "2018-11-08T02:33:47Z")

</div>

Hi,

I have a very strange problem where my config (http\_poller) works perfectly fine when I run it from the CLI (either as a normal user or sudo) but when I start logstash as a service it doesn't do anything. Logstash is starting, not producing any errors, but doesn't output any data.

As the config works from the cli and there aren't any errors in the logs, I'm at a loss what to do. Extremely vague problem.

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [November 8, 2018, 2:44am UTC](https://discuss.elastic.co/t/config-works-from-cli-doesnt-work-when-running-logstash-as-a-service/155810/2 "2018-11-08T02:44:49Z")

</div>

Never mind, my own fault. Missed a missing if statement in a different config that didn't crash logstash nor interfere with other configs, but did with this one.

---

<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:** [December 6, 2018, 2:44am UTC](https://discuss.elastic.co/t/config-works-from-cli-doesnt-work-when-running-logstash-as-a-service/155810/3 "2018-12-06T02:44:53Z")

</div>

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