# Filebeat Not Capturing "hostname" as full FQDN on Windows

**URL:** <https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 11, 2016, 3:27pm UTC](https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204 "2016-07-11T15:27:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![l33man24](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@l33man24](https://discuss.elastic.co/u/l33man24)\
**Post date:** [July 11, 2016, 3:27pm UTC](https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204/1 "2016-07-11T15:27:26Z")

</div>

Hello,

I am having an issue with Filebeat v 1.2.3 (but probably others as well as an older one had the same issue) where the host value returns only the hostname and not the full FQDN on Windows clients (E.g. server01 instead of [server01.company.com](http://server01.company.com)).

When I run Filebeat on Linux systems it displays the full FQDN as expected. I could live with this if all agents returned the partial hostname but will need to fix this as it is inconsistent and makes searching difficult.

Let me know if anyone has a workaround/solution for this.

---

<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:** [July 11, 2016, 9:02pm UTC](https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204/2 "2016-07-11T21:02:25Z")

</div>

It's a known issue. [https://github.com/elastic/beats/issues/1070](https://github.com/elastic/beats/issues/1070)

Beats use the Go stdlib for obtaining the hostname and it has slightly different behavior across platforms.

---

<div class="post-metadata">

**Author:** ![l33man24](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@l33man24](https://discuss.elastic.co/u/l33man24)\
**Post date:** [July 11, 2016, 9:06pm UTC](https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204/3 "2016-07-11T21:06:58Z")

</div>

Thank you. I don't know how I missed that one. I will apply the workaround.

---

<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:** [August 1, 2016, 3:27pm UTC](https://discuss.elastic.co/t/filebeat-not-capturing-hostname-as-full-fqdn-on-windows/55204/4 "2016-08-01T15:27:28Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
