# Libbeat ignore outgoing messages

**URL:** <https://discuss.elastic.co/t/libbeat-ignore-outgoing-messages/26678>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [August 1, 2015, 2:49pm UTC](https://discuss.elastic.co/t/libbeat-ignore-outgoing-messages/26678 "2015-08-01T14:49:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esquive](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@Esquive](https://discuss.elastic.co/u/Esquive)\
**Post date:** [August 1, 2015, 2:49pm UTC](https://discuss.elastic.co/t/libbeat-ignore-outgoing-messages/26678/1 "2015-08-01T14:49:22Z")

</div>

Hello,

I used packetbeat on multiple hosts. So I needed to disable the outgoing messages. The problem was that despite having a proper configuration of /etc/hostname and /etc/hosts, in the publisher class it was not resolved resulting in messages being published anyway. So I made a small change: I did use a map of local IPs and droped the messages with Src.IP == any local IP. Are you interested in that small modification?

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [August 3, 2015, 8:05am UTC](https://discuss.elastic.co/t/libbeat-ignore-outgoing-messages/26678/2 "2015-08-03T08:05:30Z")

</div>

Hi, yes, that sounds like a more direct way of checking compared to the current version. Please send a pull request :-).

---

<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:** [July 5, 2017, 9:59pm UTC](https://discuss.elastic.co/t/libbeat-ignore-outgoing-messages/26678/3 "2017-07-05T21:59:02Z")

</div>


