# Logstash service started but no input

**URL:** <https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472>\
**Category:** Logstash\
**Created:** [May 24, 2022, 8:43am UTC](https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472 "2022-05-24T08:43:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CemG](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@CemG](https://discuss.elastic.co/u/CemG)\
**Post date:** [May 24, 2022, 8:43am UTC](https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472/1 "2022-05-24T08:43:34Z")

</div>

Hello,

I have tested Logstash with debug, every thing worked fine. Also tried to start logstash with **/usr/share/logstash/bin/logstash** and it worked. I have changed the **logstash.service** file to use pipeline because it worked manually, but when I start the service, i see in Kafka and Kibana that Logstash do not use input.  
I don't know why it is not working when start the service and work when I start it manually.  
To use the **pipeline.yml** , I have create a link in **/usr/share/logstash/config** and should work, I have tested it.  
Here is the **logstash.service** file

```auto
[Unit]
Description=logstash

[Service]
Type=simple
User=logstash
Group=logstash
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/logstash
EnvironmentFile=-/etc/sysconfig/logstash
ExecStart=/usr/share/logstash/bin/logstash
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384

# When stopping, how long to wait before giving up and sending SIGKILL?
# Keep in mind that SIGKILL on a process can cause data loss.
TimeoutStopSec=infinity

[Install]
WantedBy=multi-user.target

```

If you have some advices, I would be happy to try them

Thank you

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [May 24, 2022, 1:41pm UTC](https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472/2 "2022-05-24T13:41:49Z")

</div>

Hi @CemG

to install Logstash, you used rpm or deb ?

by default, the Logstash config files are under the path `/etc/logstsh` , and as best practice we don't modify the `pipeline.yml` , and we put our pipelines on `.conf` files under `/etc/logstash/conf.d/`  
so when you start the Logstash service it will read automatically the pipelines you put in the path `/etc/logstash/conf.d/`

---

<div class="post-metadata">

**Author:** ![CemG](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@CemG](https://discuss.elastic.co/u/CemG)\
**Post date:** [May 24, 2022, 1:54pm UTC](https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472/3 "2022-05-24T13:54:54Z")

</div>

Hi @ibra_013  
I am using Deb  
I have solved the issue, it was because all my files was owned by root user and group user, so I just commented **User** and **Group** in **logstash.service**.  
Thank you for your information, it is good to know a better way to configure Logstash.

Have a nice day,

---

<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:** [June 21, 2022, 1:55pm UTC](https://discuss.elastic.co/t/logstash-service-started-but-no-input/305472/4 "2022-06-21T13:55:36Z")

</div>

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