# Seeing 5 duplicate entries in kibana for each log entry

**URL:** <https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619>\
**Category:** Logstash\
**Created:** [September 23, 2020, 8:07am UTC](https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619 "2020-09-23T08:07:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronnie16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronnie16/32/66399_2.png) [@Ronnie16](https://discuss.elastic.co/u/Ronnie16)\
**Post date:** [September 23, 2020, 8:07am UTC](https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619/1 "2020-09-23T08:07:05Z")

</div>

I have ELK cluster setup in which filebeat pulls the logs and sends to elasticsearch.  
The issue is that for each entry, the kibana shows exact 5 entries.  
Can someone point out the issue as to why this is happening ?

Here's my logstash configuration

```auto
input {
  beats {
    port => 5044
    add_field => { "log_level" => "-" }
    tags => ["filebeat-log"]
    type => "beats"
    client_inactivity_timeout => 300
  }
}
filter {
  if [type] == "beats" {
   json {
      source => "message"
    }

   if [log_type] != "nginx_logs"{
      mutate {
        rename => ["log", "log_message"]
      }
      json {
        source => "log_message"
      }
   }
  }
}
output {
  if [type] == "beats" {
    elasticsearch {
      hosts => ["http://localhost:9200"]
      index => "filebeat-%{+YYYY.MM.dd}"
      action => "index"
    }
  }
}

```

> Blockquote

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/4/34ae8e32f36b783d6ed6b8c48aaf1ea8563cd47a.png)

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [September 23, 2020, 1:19pm UTC](https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619/2 "2020-09-23T13:19:27Z")

</div>

What's your cluster configuration ?

---

<div class="post-metadata">

**Author:** ![Ronnie16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ronnie16/32/66399_2.png) [@Ronnie16](https://discuss.elastic.co/u/Ronnie16)\
**Post date:** [September 24, 2020, 11:21am UTC](https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619/3 "2020-09-24T11:21:23Z")

</div>

looks like it is working on adding fingerprint

```auto
filter {
  if [type] == "beats" {
   json {
      source => "message"
    }

   if [log_type] != "nginx_logs"{
      mutate {
        rename => ["log", "log_message"]
      }
      json {
        source => "log_message"
      }
   }
  }
   fingerprint {
        key => "1234ABCD"
        method => "SHA256"
        source => "message"
        target => "[@metadata][generated_id]"
        concatenate_sources => true
}
}

```

---

<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:** [October 22, 2020, 11:21am UTC](https://discuss.elastic.co/t/seeing-5-duplicate-entries-in-kibana-for-each-log-entry/249619/4 "2020-10-22T11:21:23Z")

</div>

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