# Only a fraction of the data get indexed when executing logstash via service

**URL:** <https://discuss.elastic.co/t/only-a-fraction-of-the-data-get-indexed-when-executing-logstash-via-service/241853>\
**Category:** Logstash\
**Created:** [July 20, 2020, 8:03am UTC](https://discuss.elastic.co/t/only-a-fraction-of-the-data-get-indexed-when-executing-logstash-via-service/241853 "2020-07-20T08:03:13Z")\
**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:** [July 20, 2020, 8:03am UTC](https://discuss.elastic.co/t/only-a-fraction-of-the-data-get-indexed-when-executing-logstash-via-service/241853/1 "2020-07-20T08:03:13Z")

</div>

Im consuming data from a DB, When I run the pipelines separately they get all the data, but when I run them via logstash service or with the command `/usr/share/logstash/bin/logstash --path.settings /etc/logstash` to execute pipelines.yml they dont, a tiny fraction of the data is indexed.

I have other pipelines, in the same pipelines.yml, pointing to another db, and this doesnt happens.

could be a setting in the postgres DB to limit simultaneous conections? and when it gets triggered interrupts the data flow? so that is why I get only a few records?

Logstash 7.6.1

---

<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 17, 2020, 8:03am UTC](https://discuss.elastic.co/t/only-a-fraction-of-the-data-get-indexed-when-executing-logstash-via-service/241853/2 "2020-08-17T08:03:20Z")

</div>

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