# Journalbeat 6.7 repeats old log records after rotation

**URL:** <https://discuss.elastic.co/t/journalbeat-6-7-repeats-old-log-records-after-rotation/174940>\
**Category:** Beats\
**Tags:** journalbeat\
**Created:** [April 2, 2019, 8:31am UTC](https://discuss.elastic.co/t/journalbeat-6-7-repeats-old-log-records-after-rotation/174940 "2019-04-02T08:31:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rajatrj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajatrj16/32/52875_2.png) [@rajatrj16](https://discuss.elastic.co/u/rajatrj16)\
**Post date:** [August 23, 2019, 6:31am UTC](https://discuss.elastic.co/t/journalbeat-6-7-repeats-old-log-records-after-rotation/174940/4 "2019-08-23T06:31:07Z")

</div>

How did you solve this issue I am facing this issue right now,  
I am taking logs from journalctl and giving input in logstash, then logstash sent it to kibana.

The last log from journalbeat-7.2 is repeating continuously in kibana, but there is only one entry of that log in journalctl.

```
journalbeat.inputs:
- paths: ["/var/log/journal/ec2a64c31fceb7b6eee4bd5"]
  seek: cursor
  include_matches:
      - "syslog.identifier=XXXXXXX"
setup.template.settings:
  index.number_of_shards: 1
setup.kibana:
output.logstash:
        hosts: ["xxx.xxx.xxx.xx:XXXX"]
processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

```

> [@Journalbeat 7.2 repeating last log in an infinite loop](https://discuss.elastic.co/t/journalbeat-repeating-last-log-in-an-infinite-loop/196512):
>
> Hello, I am taking logs from journalctl and giving input in logstash, then logstash sent it to kibana. The main concern is the last log is repeating in an infinite loop and journalbeat-7.2 is publishing event in about some seconds. I will be able to see my last log in journalctl -t \<syslog.identifier\> --recursive (latest) have a single entry that is repeating again and again. $ journalctl -t XXXXXX --reverse -- Logs begin at Wed 2019-04-17 12:56:46 UTC, end at Fri 2…

---

_[View the full topic](https://discuss.elastic.co/t/journalbeat-6-7-repeats-old-log-records-after-rotation/174940)._
