# Audit hostname?

**URL:** <https://discuss.elastic.co/t/audit-hostname/85105>\
**Category:** Elasticsearch\
**Created:** [May 9, 2017, 1:48pm UTC](https://discuss.elastic.co/t/audit-hostname/85105 "2017-05-09T13:48:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [May 9, 2017, 1:48pm UTC](https://discuss.elastic.co/t/audit-hostname/85105/1 "2017-05-09T13:48:03Z")

</div>

Hello,

Just enabled auditing and noticed in the .security-audit index that the node\_host\_name is always the ip address of the node. Not sure, but isn't this supposed to be the hostname of the node? the node\_name also seems to be empty?

![](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05295586d10838d8bef32f3d143e81a6c58fe763.png)

In /etc/elasticsearch/elasticsearch.yml I have defined:

`node.name: ${HOSTNAME}`

and

`xpack.security.audit.enabled: true xpack.security.audit.outputs: [index, logfile] xpack.security.audit.index.settings: index: number_of_shards: 1 number_of_replicas: 1`

The .monitoring indexes do seem to list the hostname in source\_node.name field.

Am I missing something?

Grtz

Willem

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [June 5, 2017, 3:05pm UTC](https://discuss.elastic.co/t/audit-hostname/85105/2 "2017-06-05T15:05:55Z")

</div>

HI @willemdh,

Sorry for the delay in response. What version are you seeing this on? Any more details about your setup would be much appreciated.

Jay

---

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [June 5, 2017, 3:33pm UTC](https://discuss.elastic.co/t/audit-hostname/85105/3 "2017-06-05T15:33:59Z")

</div>

Np, well in the meantime we reinstalled the system and I'm not yet to the auditing part. I'll update this post once I've configured auditing.

Grtz

Willem

---

<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 3, 2017, 3:34pm UTC](https://discuss.elastic.co/t/audit-hostname/85105/4 "2017-07-03T15:34:15Z")

</div>

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