# Get logs from my ip only in Paketbeat

**URL:** https://discuss.elastic.co/t/get-logs-from-my-ip-only-in-paketbeat/267145
**Category:** Beats
**Tags:** packetbeat
**Created:** [March 13, 2021, 10:25am UTC](https://discuss.elastic.co/t/get-logs-from-my-ip-only-in-paketbeat/267145 "2021-03-13T10:25:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)
#### Post date: [March 13, 2021, 10:25am UTC](https://discuss.elastic.co/t/get-logs-from-my-ip-only-in-paketbeat/267145/1 "2021-03-13T10:25:11Z")

</div>

Hi,

Can anybody tell how can I set a condition in packetbeat.yml to get traffic from my ip only and not from different subnets? In other words the destination.ip: should be only my ip and any other ip in the subnet.

I've tried this but didn't worked.

```auto
packetbeat.interfaces.internal_networks:
  - destination.ip: '192.168.0.0/24'

```

Any help?  
Regards.

---

<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: [April 10, 2021, 12:26pm UTC](https://discuss.elastic.co/t/get-logs-from-my-ip-only-in-paketbeat/267145/2 "2021-04-10T12:26:09Z")

</div>

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