# So slow in loading the log files via stdin plugin

**URL:** <https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 8, 2017, 5:53pm UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963 "2017-05-08T17:53:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andypark](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@andypark](https://discuss.elastic.co/u/andypark)\
**Post date:** [May 8, 2017, 5:53pm UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/1 "2017-05-08T17:53:38Z")

</div>

Hi guys,

Currently I need to load some logfiles contained in tar (archive) files. To load them into filebeat, I am using gzcat tool to echo the log files inside the archive files using stdin input for filebeat. For a 200mb log file, it takes more than 1 hour. We wonder if there would be any way to speed things up. I was playing with different buffer size and poolsize options but it did not help much. Also, I tried using an SSD drive instead of a regular hard drive but it did not help much either. Any help would be greatly appreciated.

Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [May 9, 2017, 9:41am UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/2 "2017-05-09T09:41:55Z")

</div>

Could you share your setup, version of filebeat, config file and the log file? 1h for 200mb sounds way too long.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 9, 2017, 1:47pm UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/3 "2017-05-09T13:47:49Z")

</div>

Which output are you using?

---

<div class="post-metadata">

**Author:** ![andypark](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@andypark](https://discuss.elastic.co/u/andypark)\
**Post date:** [May 10, 2017, 6:37pm UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/4 "2017-05-10T18:37:49Z")

</div>

filebeat.prospectors:

- input\_type: stdin  
document\_type: log

filebeat.spool\_size: 8192  
filebeat.publish\_async: true

output.elasticsearch:  
hosts: ["localhost:9200"]  
template.enabled: false

template.path: "/etc/filebeat/filebeat.template.json"

output.logstash:  
hosts: ["localhost:5044"]  
bulk\_max\_size : 2048  
loadbalance: true  
workers: 4

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 11, 2017, 10:20am UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/5 "2017-05-11T10:20:32Z")

</div>

you're outputting to ES and LS at the same time. One/both might generate back-pressure, slowing down filebeat.

---

<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 8, 2017, 10:22am UTC](https://discuss.elastic.co/t/so-slow-in-loading-the-log-files-via-stdin-plugin/84963/6 "2017-06-08T10:22:33Z")

</div>

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