# Found Duplicated HTTP Events in Kubernetes Cluster

**URL:** <https://discuss.elastic.co/t/found-duplicated-http-events-in-kubernetes-cluster/212909>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [December 24, 2019, 3:57am UTC](https://discuss.elastic.co/t/found-duplicated-http-events-in-kubernetes-cluster/212909 "2019-12-24T03:57:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoolDarran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cooldarran/32/59906_2.png) [@CoolDarran](https://discuss.elastic.co/u/CoolDarran)\
**Post date:** [December 24, 2019, 3:57am UTC](https://discuss.elastic.co/t/found-duplicated-http-events-in-kubernetes-cluster/212909/1 "2019-12-24T03:57:45Z")

</div>

Hi,  
We're using Packetbeat to capture http traffic in Kubernetes Cluster. We've observed that there are duplicated http events even set `ignore_outgoing` to `true`.

Example as blow:

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

- same `network.community_id`, `source.ip`, `source.port`, `destination.ip`, `destination.port`
- the difference between these two event is `agent.hostname`, `hostname` and `node.name`
- the actually event is the one with `kubernetes.pod.uid` attached

My question is if there's any sort of method to avoid duplicated events?

---

<div class="post-metadata">

**Author:** ![CoolDarran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cooldarran/32/59906_2.png) [@CoolDarran](https://discuss.elastic.co/u/CoolDarran)\
**Post date:** [December 24, 2019, 4:04am UTC](https://discuss.elastic.co/t/found-duplicated-http-events-in-kubernetes-cluster/212909/2 "2019-12-24T04:04:20Z")

</div>

the configuration:

```auto
packetbeat.interfaces.device: any
packetbeat.interfaces.type: af_packet

packetbeat.ignore_outgoing: true

packetbeat.protocols:
- type: http
  enable: true
  send_all_headers: true
  split_cookie: true
  include_body_for: ["application/json", "application/x-www-form-urlencoded"]

packetbeat.flows:
  timeout: 30s
  period: 10s

processors:
  - add_cloud_metadata:
  - add_kubernetes_metadata:
      host: ${NODE_NAME}
      indexers:
      - ip_port:
      matchers:
      - field_format:
          format: '%{[server.ip]}:%{[server.port]}'

```

---

<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 21, 2020, 4:04am UTC](https://discuss.elastic.co/t/found-duplicated-http-events-in-kubernetes-cluster/212909/3 "2020-01-21T04:04:21Z")

</div>

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