# Packetbeat network traffic issue

**URL:** https://discuss.elastic.co/t/packetbeat-network-traffic-issue/181494
**Category:** Beats
**Created:** [May 17, 2019, 12:06am UTC](https://discuss.elastic.co/t/packetbeat-network-traffic-issue/181494 "2019-05-17T00:06:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gerardo\_Heredia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gerardo_heredia/32/46347_2.png) [@Gerardo\_Heredia](https://discuss.elastic.co/u/Gerardo_Heredia)
#### Post date: [May 17, 2019, 12:06am UTC](https://discuss.elastic.co/t/packetbeat-network-traffic-issue/181494/1 "2019-05-17T00:06:32Z")

</div>

Hi, I am trying to get all the network traffic of a building, I already install elasticsearch, kibana, logastash and packetbeat. I only get the traffic of the computer where the stack is installed. I am connected to the switch of thw building. I used elasticsearch as an output in packetbeat.yml and use my network interface instead of the localhost also at packetbeat.yml. I hope someone can help me please.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [May 24, 2019, 9:29pm UTC](https://discuss.elastic.co/t/packetbeat-network-traffic-issue/181494/2 "2019-05-24T21:29:33Z")

</div>

In order to capture all traffic flowing through the switch you will need to setup a [mirror port](https://en.wikipedia.org/wiki/Port_mirroring) (sometimes called span port) that passes a copy of all traffic flowing through the switch to a dedicated port on the switch. Then you connect a cable between that port and a NIC on the computer running Packetbeat. Finally you configure Packetbeat to monitor that NIC exclusively.

---

<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: [June 21, 2019, 11:29pm UTC](https://discuss.elastic.co/t/packetbeat-network-traffic-issue/181494/3 "2019-06-21T23:29:35Z")

</div>

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