# Last line of log repeatedly gets indexed/processed to elastic/kibana

**URL:** https://discuss.elastic.co/t/last-line-of-log-repeatedly-gets-indexed-processed-to-elastic-kibana/242293
**Category:** Logstash
**Created:** [July 23, 2020, 7:15am UTC](https://discuss.elastic.co/t/last-line-of-log-repeatedly-gets-indexed-processed-to-elastic-kibana/242293 "2020-07-23T07:15:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Aj\_t](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Aj\_t](https://discuss.elastic.co/u/Aj_t)
#### Post date: [July 23, 2020, 7:15am UTC](https://discuss.elastic.co/t/last-line-of-log-repeatedly-gets-indexed-processed-to-elastic-kibana/242293/1 "2020-07-23T07:15:20Z")

</div>

I have a **filebeat \> logstash \> elastic** set up and I am working with a multi-line log format.

I am not sure why the last line of the log file is repeatedly getting indexed. What I would ideally want is that filebeat would wait for new log entries and process them as they arrive.  
Here's my filebeat.yml:

```auto
filebeat.inputs:
- type: log
  enabled: true

  paths:
    - /var/log/some.log

  ### Multiline options
  multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
  multiline.negate: true
  multiline.match: after

output.logstash:
  hosts: ["xx.xx.xx.xx:5044"]

```

For testing purposes, I delete the index before starting logstash & filebeat. So the index should be clean. By the way, I am not creating the index manually - it's created by the logstash config code in its `output` section.

Here's an example of repeated entries of the last line in kibana:

![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/2313de91ee8988bb07c8dfbb66369fda436f5986.png)

What config changes do I need to make to fix this? Thanks!

---

<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: [August 20, 2020, 7:15am UTC](https://discuss.elastic.co/t/last-line-of-log-repeatedly-gets-indexed-processed-to-elastic-kibana/242293/2 "2020-08-20T07:15:38Z")

</div>

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