# Duplicate Lines

**URL:** <https://discuss.elastic.co/t/duplicate-lines/68592>\
**Category:** Logstash\
**Created:** [December 9, 2016, 5:00pm UTC](https://discuss.elastic.co/t/duplicate-lines/68592 "2016-12-09T17:00:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mavvv](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mavvv](https://discuss.elastic.co/u/mavvv)\
**Post date:** [December 9, 2016, 5:00pm UTC](https://discuss.elastic.co/t/duplicate-lines/68592/1 "2016-12-09T17:00:32Z")

</div>

Hi all,

I have a problem with my ELK configuration.  
I use :

- logstash 2.4.X
- Elasticsearch : 2.4.1
- Kibana : 4.6.1

My Logstash.conf

```
input {
  file {
    type => "MyAppLogs"
    path => "/var/log/myApp/*.log"
  }
}

filter {

  uuid {
    target => "@uuid"
    overwrite => true
  }
  fingerprint {
    source => ["message"]
    target => "fingerprint"
    key => "78787878"
    method => "SHA1"
    concatenate_sources => true
  }
 (some Grok patterns)
}

output {
if "_grokparsefailure" not in [tags] {
  elasticsearch {
    hosts => ["elasticsearch.host.ip"]
    document_id => "%{fingerprint}"
    }
  }
}

```

If i check in my elasticsearch instance, i see three lines for juste one log line :

 ![](https://us1.discourse-cdn.com/elastic/original/2X/8/8e5b141136f6ab699157afffbe0ca2ba3b91408f.JPG)

As you can see, i generate a fingerprint and try to replace the document\_id by my fingerprint.  
If i look inside these three lines, i see that they have the same fingerprint (94c475dfd211a587c34610eaa96df1b823a26f3d) but only one line have his document\_id replace by the fingerprint.

Do you have any idea why i have these duplpicate lines ?

---

<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:** [January 6, 2017, 5:00pm UTC](https://discuss.elastic.co/t/duplicate-lines/68592/2 "2017-01-06T17:00:56Z")

</div>

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