# How do we differentiate inbound and outbound traffic in packetbeat

**URL:** <https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [October 9, 2018, 3:54pm UTC](https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679 "2018-10-09T15:54:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [October 9, 2018, 3:54pm UTC](https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679/1 "2018-10-09T15:54:22Z")

</div>

How do we differentiate inbound and outbound traffic in packetbeat ?

or how do we can find out connection to server and connection from server ?

---

<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:** [October 10, 2018, 8:55am UTC](https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679/2 "2018-10-10T08:55:16Z")

</div>

There is a [direction](https://www.elastic.co/guide/en/beats/packetbeat/current/exported-fields-trans_event.html#exported-fields-trans_event) field added by some of the protocol modules (e.g. http, dns).

For [flows](https://www.elastic.co/guide/en/beats/packetbeat/current/configuration-flows.html) there isn't any indicator for which side of the flow initiated the connection.

---

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [October 10, 2018, 1:16pm UTC](https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679/3 "2018-10-10T13:16:54Z")

</div>

thanks for help

---

<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:** [November 7, 2018, 1:16pm UTC](https://discuss.elastic.co/t/how-do-we-differentiate-inbound-and-outbound-traffic-in-packetbeat/151679/4 "2018-11-07T13:16:56Z")

</div>

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