# Consume many logs from file

**URL:** https://discuss.elastic.co/t/consume-many-logs-from-file/56004
**Category:** Logstash
**Created:** [July 20, 2016, 4:43pm UTC](https://discuss.elastic.co/t/consume-many-logs-from-file/56004 "2016-07-20T16:43:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jeferson\_Martins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson_martins/32/5849_2.png) [@Jeferson\_Martins](https://discuss.elastic.co/u/Jeferson_Martins)
#### Post date: [July 20, 2016, 4:43pm UTC](https://discuss.elastic.co/t/consume-many-logs-from-file/56004/1 "2016-07-20T16:43:37Z")

</div>

Hello,

Today I have a problema where I have to consume a nginx log, but this log file writes more lines than logstash can collect.

There's some way to have more performance in collect logs?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 21, 2016, 6:46pm UTC](https://discuss.elastic.co/t/consume-many-logs-from-file/56004/2 "2016-07-21T18:46:35Z")

</div>

Logstash shouldn't have any problems reading from a file at a decent rate, but it's filters could be slowing it down. What kind of filters do you have? Which version of Logstash? Are your CPus saturated? Also, Logstash's input rate depends on its output rate. No matter how fast your filters are you're still in trouble of the outputs are blocked, e.g. because Elasticsearch can't receive the data fast enough.

---

<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: [July 6, 2017, 4:46am UTC](https://discuss.elastic.co/t/consume-many-logs-from-file/56004/3 "2017-07-06T04:46:55Z")

</div>


