# Filebeat processrs revers dns only for private network

**URL:** <https://discuss.elastic.co/t/filebeat-processrs-revers-dns-only-for-private-network/264232>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 14, 2021, 1:24am UTC](https://discuss.elastic.co/t/filebeat-processrs-revers-dns-only-for-private-network/264232 "2021-02-14T01:24:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tellus83](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tellus83](https://discuss.elastic.co/u/tellus83)\
**Post date:** [February 14, 2021, 1:24am UTC](https://discuss.elastic.co/t/filebeat-processrs-revers-dns-only-for-private-network/264232/1 "2021-02-14T01:24:07Z")

</div>

I'm using filbeate to resolve reverse DNS lookup

```auto
  - dns:
      type: reverse
      fields:
        source.ip: source.hostname
        destination.ip: destination.hostname
      success_cache:
        capacity.initial: 1000
        capacity.max: 10000
      failure_cache:
        capacity.initial: 1000
        capacity.max: 10000
        ttl: 1m
      timeout: 500ms
      tag_on_failure: [_dns_reverse_lookup_failed]

```

How can i combine this whit "when.network.source.ip: private" so only DNS lookup for private network are done?

---

<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:** [March 14, 2021, 3:24am UTC](https://discuss.elastic.co/t/filebeat-processrs-revers-dns-only-for-private-network/264232/2 "2021-03-14T03:24:23Z")

</div>

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