# Logstash not seeing updates in logs

**URL:** <https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054>\
**Category:** Logstash\
**Created:** [March 6, 2019, 8:36am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054 "2019-03-06T08:36:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozziej](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jozziej](https://discuss.elastic.co/u/Jozziej)\
**Post date:** [March 6, 2019, 8:36am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054/1 "2019-03-06T08:36:21Z")

</div>

When I use Logstash with the file plugin it reads the log till the point when Logstash discovered the file.  
Any updates in the Logs are not tailed and showed

A little explanation from my side.  
I use rsync to synchronize logs from 2 servers (Linux) to a local machine (Windows 7) which runs Logstash and Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 6, 2019, 8:50am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054/2 "2019-03-06T08:50:49Z")

</div>

> [@Jozziej](#):
>
> Any updates in the Logs are not tailed and showed

Are you appending additional data to the log or modifying lines that may already have been parsed?

---

<div class="post-metadata">

**Author:** ![Jozziej](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jozziej](https://discuss.elastic.co/u/Jozziej)\
**Post date:** [March 6, 2019, 9:42am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054/3 "2019-03-06T09:42:01Z")

</div>

Every additional data are new log lines with new timestamps

Below the message from the Logstash Logs

[2019-03-06T09:40:05,165][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=\>"ConcurrentMarkSweep"}  
[2019-03-06T09:40:08,208][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu  
[2019-03-06T09:40:09,725][DEBUG][logstash.pipeline] Pushing flush onto pipeline {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x26e73c45 sleep\>"}

---

<div class="post-metadata">

**Author:** ![Jozziej](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@Jozziej](https://discuss.elastic.co/u/Jozziej)\
**Post date:** [March 9, 2019, 10:20am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054/4 "2019-03-09T10:20:46Z")

</div>

The problem is solved.

The issue is within rsync, it does not update the file itself.  
When it is synchronizing it is making a duplicate of the existing file as a temp file and adds the extra data to replace the original file.

That's why I needed to restart Logstash to see the updated data

---

<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 6, 2019, 10:27am UTC](https://discuss.elastic.co/t/logstash-not-seeing-updates-in-logs/171054/5 "2019-04-06T10:27:47Z")

</div>

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