# Transmission of logs in real time mode

**URL:** https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319
**Category:** Elasticsearch
**Created:** [November 30, 2023, 10:23am UTC](https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319 "2023-11-30T10:23:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aleksandr\_Terekhov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aleksandr_terekhov/32/118288_2.png) [@Aleksandr\_Terekhov](https://discuss.elastic.co/u/Aleksandr_Terekhov)
#### Post date: [November 30, 2023, 10:23am UTC](https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319/1 "2023-11-30T10:23:42Z")

</div>

Hello everybody

Please tell me what the problem might be

I have a mail server on which the filebeat agent is installed, it transfers data to another server on which logstash and elastic are installed

I randomly display data with a delay of more than 7 seconds

 ![Записати](https://us1.discourse-cdn.com/elastic/original/3X/2/0/2041c7cca3b85ab98460c57fafdac6d233de520d.png)

As you can see in the screenshot, the recording time of the event on the mail server differs from the recording time in the elastic itself by 7 seconds

What could this be related to?

All VMs are on the same network in the same VLAN on the same host in VMware

---

<div class="post-metadata">

### Author: ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)
#### Post date: [November 30, 2023, 11:42am UTC](https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319/2 "2023-11-30T11:42:44Z")

</div>

This could be a number of things:

- buffering in filebeat
- buffering in logstash
- etc

I would recommend you to parse the events using a pipeline (either logstash or elasticsearch) and use the date filter/processor to set the @timestamp to the one in the log record.

This will make sure the records are displayed in the correct time moment.

---

<div class="post-metadata">

### Author: ![Aleksandr\_Terekhov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aleksandr_terekhov/32/118288_2.png) [@Aleksandr\_Terekhov](https://discuss.elastic.co/u/Aleksandr_Terekhov)
#### Post date: [December 1, 2023, 2:02pm UTC](https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319/3 "2023-12-01T14:02:50Z")

</div>

And could you provide more practical recommendations. What parameters to pay attention to?

Thank you!

---

<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: [December 29, 2023, 2:03pm UTC](https://discuss.elastic.co/t/transmission-of-logs-in-real-time-mode/348319/4 "2023-12-29T14:03:32Z")

</div>

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