# How to config filebeat collecting and send log every second?

**URL:** <https://discuss.elastic.co/t/how-to-config-filebeat-collecting-and-send-log-every-second/359598>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 16, 2024, 7:48am UTC](https://discuss.elastic.co/t/how-to-config-filebeat-collecting-and-send-log-every-second/359598 "2024-05-16T07:48:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dw130](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dw130/32/134522_2.png) [@dw130](https://discuss.elastic.co/u/dw130)\
**Post date:** [May 16, 2024, 7:48am UTC](https://discuss.elastic.co/t/how-to-config-filebeat-collecting-and-send-log-every-second/359598/1 "2024-05-16T07:48:20Z")

</div>

hi, I want to collect log and send to es as quickly as possible

So I set

- type: filestream  
id: login  
backoff:  
init: 1s  
max: 1s

and open the output debug mode  
and when I write log to log file and about four seconds later, the log server debug log said receive the log  
My scence is the number of logs is little every minute.

Is there any config let log collect and send to log server in 1 seconds？

thanks

---

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [May 16, 2024, 9:58am UTC](https://discuss.elastic.co/t/how-to-config-filebeat-collecting-and-send-log-every-second/359598/2 "2024-05-16T09:58:42Z")

</div>

Hi @dw130, Welcome to the Elastic community.

It seems you using filebeat to read logfile. There are some processes involved, such as tracking files, reading data, maintaining connections, and making bulk requests, may introduce some latency. Additionally, external factors like network latency, hardware performance, and tuning can also affect the speed of log ingestion.

You can try some tuning by changing the [preset](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#_preset).
