# Filebeat Windows | Time sync

**URL:** https://discuss.elastic.co/t/filebeat-windows-time-sync/121513
**Category:** Beats
**Tags:** filebeat
**Created:** [February 26, 2018, 2:59pm UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513 "2018-02-26T14:59:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![adachi](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@adachi](https://discuss.elastic.co/u/adachi)
#### Post date: [February 26, 2018, 2:59pm UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/1 "2018-02-26T14:59:43Z")

</div>

Hi! While using Filebeat on Windows Server 2008 R2 I've encountered problem with keeping time in sync.  
filebeat.yml:

```
filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - E:\logs\log1\*.log
    - E:\logs\log2\*.log

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1

setup.kibana:

output.elasticsearch:
  hosts: ["10.10.10.10:9200"]
  pipeline: pipeone

```

Time checked using `w32tm /stripchart /computer:local.time.server`

 ![timesync](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee728b1ee59c508be0a0153ae2e1ce6e902a39ea.png)  
16:30:15 d:+00.0086430s o:+00.0419900s [\*]  
16:30:17 d:-00.0001663s o:-00.0703118s [\*]  
16:30:19 d:-00.0013052s o:-00.0521541s [\*]  
16:30:21 d:+00.0005373s o:-00.0363865s [\*]  
16:30:23 d:-00.0000926s o:-00.1217061s [\*]  
16:30:25 d:-00.0001562s o:-00.1161234s [\*]  
16:30:27 d:-00.0001356s o:-00.1730637s [\*]  
\>\>\>\>FILEBEAT STARTED\<\<\<\<  
16:30:29 d:+00.0151207s o:-00.2354836s [\*|]  
16:30:31 d:-00.0005937s o:-00.2812407s [\*|]  
16:30:33 d:-00.0003368s o:-00.3129549s [\*|]  
16:30:35 d:-00.0001306s o:-00.3237276s [\*|]  
16:30:37 d:-00.0001889s o:-00.3423157s [\*|]  
16:30:39 d:-00.0009166s o:-00.3785393s [\*|]  
16:30:41 d:-00.0000977s o:-00.4444199s [\*|]  
16:30:43 d:-00.0002783s o:-00.5130465s [\*|]  
16:30:45 d:-00.0001818s o:-00.6004722s [\* |]  
16:30:47 d:-00.0001156s o:-00.6263772s [\* |]  
16:30:49 d:-00.0001021s o:-00.6975589s [\* |]  
16:30:51 d:-00.0002422s o:-00.7829291s [\* |]  
16:30:52 d:-00.0001615s o:-00.3098583s [\*|]  
16:30:54 d:+00.0151390s o:-00.2030070s [\*|]  
16:30:56 d:-00.0001489s o:-00.2381942s [\*|]  
16:30:58 d:-00.0000952s o:-00.3051694s [\*|]  
16:31:00 d:-00.0001233s o:-00.3934417s [\*|]  
16:31:02 d:-00.0001389s o:-00.4359527s [\*|]  
16:31:04 d:-00.0001413s o:-00.4796767s [\*|]  
16:31:06 d:-00.0000852s o:-00.5553451s [\* |]  
16:31:08 d:-00.0001489s o:-00.6395647s [\* |]  
16:31:10 d:-00.0001941s o:-00.7211694s [\* |]  
16:31:12 d:-00.0000883s o:-00.7702362s [\* |]  
16:31:14 d:-00.0002636s o:-00.8222141s [\* |]  
16:31:16 d:-00.0005851s o:-00.8561937s [\* |]  
16:31:18 d:-00.0001022s o:-00.8825711s [\* |]  
16:31:20 d:-00.0001282s o:-00.8880557s [\* |]  
16:31:22 d:-00.0001076s o:-00.9516177s [\* |]  
16:31:23 d:-00.0002801s o:-00.0821727s [\*]  
16:31:25 d:-00.0001054s o:-00.1352967s [\*]  
16:31:27 d:-00.0001246s o:-00.2611943s [\*|]  
16:31:29 d:-00.0001594s o:-00.3034458s [\*|]  
16:31:31 d:-00.0001097s o:-00.3153836s [\*|]  
16:31:33 d:-00.0001257s o:-00.3396538s [\*|]  
16:31:35 d:-00.0001404s o:-00.4100220s [\*|]  
16:31:37 d:-00.0001446s o:-00.5507578s [\* |]  
16:31:39 d:-00.0001197s o:-00.6320808s [\* |]  
16:31:41 d:-00.0001122s o:-00.6426351s [\* |]  
16:31:43 d:-00.0001213s o:-00.6344965s [\* |]  
16:31:45 d:-00.0001695s o:-00.6158208s [\* |]  
16:31:47 d:-00.0002422s o:-00.6236461s [\* |]  
16:31:49 d:-00.0001159s o:-00.6198303s [\* |]  
16:31:51 d:-00.0045402s o:-00.6132371s [\* |]  
16:31:53 d:-00.0003799s o:-00.6219039s [\* |]  
\>\>\>\>FILEBEAT STOPPED\<\<\<\<  
16:31:55 d:-00.0001142s o:-00.3300722s [\*|]  
16:31:57 d:-00.0002606s o:-00.0341674s [\*]  
16:31:59 d:-00.0002198s o:-00.0050161s [\*]  
16:32:00 d:-00.0001393s o:+00.0069701s [\*]  
16:32:02 d:-00.0001213s o:+00.0114333s [\*]  
16:32:04 d:-00.0001206s o:+00.0188902s [\*]  
16:32:06 d:-00.0002180s o:+00.0242616s [\*]

CPU\HDD\Memory graphs didn't show significant changes.  
Is there a way, maybe some config settings to prevent filebeat affecting time on server this much?

---

<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: [February 27, 2018, 3:53am UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/2 "2018-02-27T03:53:24Z")

</div>

I'm not sure yet how Filebeat could affect the system time. One potential way could be that Filebeat saturates the Network connection because of all the logs shipped.

How many log lines per second do you ship? Do you have any data on how saturated your network connection is?

---

<div class="post-metadata">

### Author: ![adachi](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@adachi](https://discuss.elastic.co/u/adachi)
#### Post date: [February 27, 2018, 8:02am UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/3 "2018-02-27T08:02:38Z")

</div>

13 files - ~22mb each, around 180k lines per file

 ![net_in](https://us1.discourse-cdn.com/elastic/original/3X/3/b/3b6d3fd37cb12b0c25beed1d10904fc5e609f71d.png)  
 ![net_out](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b1ae04aa6bb99c61ae687764142ca46b872bbc81.png)

alternatively I've tried using logstash - works fine without time issues.  
also tried copying large files to saturate network - no issues either.

---

<div class="post-metadata">

### Author: ![adachi](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@adachi](https://discuss.elastic.co/u/adachi)
#### Post date: [March 2, 2018, 10:12am UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/4 "2018-03-02T10:12:27Z")

</div>

If you need any additional data I'll gladly provide it.  
Currently using logstash as workaround.

ps. adding to prospector:

> ignore\_older: 1h  
> close\_inactive: 5m  
> tail\_files: true

did nothing to prevent time from desynchronizing,  
currently filebeat only gets 2 files to tail

---

<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: [March 4, 2018, 4:32am UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/5 "2018-03-04T04:32:17Z")

</div>

I honestly have a hard time to see how Filebeat could affect NTP as in the end it's just a binary that is execute as is Logstash or any other app.

Perhaps we can start from an other angle: What are the things on Windows that can have an affect on the NTP sync? Perhaps then I can think of ways how FB could affect these.

---

<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: [April 1, 2018, 4:32am UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/6 "2018-04-01T04:32:21Z")

</div>

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

---

<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: [June 13, 2018, 1:02pm UTC](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/7 "2018-06-13T13:02:19Z")

</div>

@adachi This issue popped up today: [https://github.com/elastic/beats/issues/7308](https://github.com/elastic/beats/issues/7308) It reminded me a lot of your issue.
