# Filebeat to logstash, no data when logstash run as service, got data when I run by command

**URL:** <https://discuss.elastic.co/t/filebeat-to-logstash-no-data-when-logstash-run-as-service-got-data-when-i-run-by-command/296752>\
**Category:** Logstash\
**Created:** [February 9, 2022, 4:07pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-no-data-when-logstash-run-as-service-got-data-when-i-run-by-command/296752 "2022-02-09T16:07:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [February 9, 2022, 4:07pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-no-data-when-logstash-run-as-service-got-data-when-i-run-by-command/296752/1 "2022-02-09T16:07:45Z")

</div>

Hi, I got several pipelines getting data from a DB, and other new pipelines that get data from filebeat.

When I run logstash as a service, I get data from the DB source, but no data from filebeat.  
When I run logstash by the command `sudo /usr/share/logstash/bin/logstash --path.settings /etc/logstash`

I get data from all pipelines, DB source an FB source.

What may be the problem?

---

<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:** [March 9, 2022, 4:08pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-no-data-when-logstash-run-as-service-got-data-when-i-run-by-command/296752/2 "2022-03-09T16:08:00Z")

</div>

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