# How to change ES 5.2 log names in log4j 2 config?

**URL:** <https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354>\
**Category:** Elasticsearch\
**Created:** [February 8, 2017, 9:56am UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354 "2017-02-08T09:56:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [February 8, 2017, 9:56am UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/1 "2017-02-08T09:56:12Z")

</div>

Hi,

I'm trying to get the ES log file names to contain the node name.

I checked various documentations but couldn't find anything in the 5.2 docs. Also tried various es.logs.\* combinations found in other the docs but they don't seem to work.

Many thanks for your help,

---

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [February 21, 2017, 2:35pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/2 "2017-02-21T14:35:57Z")

</div>

Hi Elastic Team,

Could you please advise on this?

According to the 5.x documentation: [https://www.elastic.co/guide/en/elasticsearch/reference/5.x/settings.html#logging](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/settings.html#logging) setting this should work `${sys:es.logs.node_name} (if the node name is explicitly set via node.name)` however it doesn't in 5.2.

In the current documentation: [https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#logging](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#logging) it doesn't mention anything about naming the log files based on node names.

In the upcoming changes doc: [https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking-changes-5.3.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/breaking-changes-5.3.html) it mentions about `sys:es.logs.node_name` which is the same as the first link so I guess the feature is not available in 5.2 and will only become available in 5.3?

Cheers,

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 21, 2017, 9:53pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/3 "2017-02-21T21:53:42Z")

</div>

Correct. The first version that feature will be available in is 5.3.0.

---

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [February 22, 2017, 9:44am UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/4 "2017-02-22T09:44:10Z")

</div>

Awesome, many thanks for the confirmation.

---

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [February 22, 2017, 11:57am UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/5 "2017-02-22T11:57:52Z")

</div>

By the way, any rough timelines for when 5.3 gonna be out?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 22, 2017, 12:15pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/6 "2017-02-22T12:15:06Z")

</div>

I'm terribly sorry, but we do not provide release timelines.

---

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [February 22, 2017, 1:17pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/7 "2017-02-22T13:17:46Z")

</div>

No worries, many thanks for the reply.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 22, 2017, 2:11pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/8 "2017-02-22T14:11:34Z")

</div>

You're very welcome.

---

<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 22, 2017, 2:12pm UTC](https://discuss.elastic.co/t/how-to-change-es-5-2-log-names-in-log4j-2-config/74354/9 "2017-03-22T14:12:06Z")

</div>

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