# Multiple hostname (DNS) output for beats?

**URL:** https://discuss.elastic.co/t/multiple-hostname-dns-output-for-beats/302964
**Category:** Beats
**Tags:** filebeat, packetbeat, winlogbeat, auditbeat
**Created:** [April 21, 2022, 8:00pm UTC](https://discuss.elastic.co/t/multiple-hostname-dns-output-for-beats/302964 "2022-04-21T20:00:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![parthmaniar](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@parthmaniar](https://discuss.elastic.co/u/parthmaniar)
#### Post date: [April 21, 2022, 8:00pm UTC](https://discuss.elastic.co/t/multiple-hostname-dns-output-for-beats/302964/1 "2022-04-21T20:00:53Z")

</div>

Hello,

Is it possible to use multiple FQDN's as part of output to **logstash** via beats?

My usecase:

1. I want to send a publically routable logging destination - [logging.maniarfamily.com](http://logging.maniarfamily.com) which will resolve to a **public IP address.**
2. I want devices to directly send data to logstash node when on the local network. Hence I have two options. I can have another **local only DNS entry** - [internal.logging.maniarfamily.com](http://internal.logging.maniarfamily.com) that will resolve only when the hosts are on local network pointing to the internal logstash IP address (10.x.x.x) as opposed to the public IP address.

**Will logstash automatically attempt to resolve the second host if the first one fails?**

---

<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: [May 19, 2022, 10:00pm UTC](https://discuss.elastic.co/t/multiple-hostname-dns-output-for-beats/302964/2 "2022-05-19T22:00:54Z")

</div>

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