# X-pack configuration files

**URL:** <https://discuss.elastic.co/t/x-pack-configuration-files/151801>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 9:29am UTC](https://discuss.elastic.co/t/x-pack-configuration-files/151801 "2018-10-10T09:29:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Bossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefano_bossi/32/41743_2.png) [@Stefano\_Bossi](https://discuss.elastic.co/u/Stefano_Bossi)\
**Post date:** [October 10, 2018, 9:29am UTC](https://discuss.elastic.co/t/x-pack-configuration-files/151801/1 "2018-10-10T09:29:00Z")

</div>

Dear ES community,

I have recently upgraded my cluster from 6.2 to 6.4, everything was fine but now I want to clean up the old x-pack configuration files.  
I read the /etc/elasticsearch/x-pack directory is now deprecated because x-pack is now part of the base installation and no more a plugin.

I have these file in the x-pack config dir:

log4j2.properties  
role\_mapping.yml  
roles.yml  
users  
users\_roles

Should I move the files from /etc/elasticsearch/x-pack to /etc/elasticsearch ?  
What about the log4j2.properties file which is duplicate?

Thanks for your help.

Regards,  
S.

---

<div class="post-metadata">

**Author:** ![fkelbert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fkelbert/32/35762_2.png) [@fkelbert](https://discuss.elastic.co/u/fkelbert)\
**Post date:** [October 11, 2018, 1:41pm UTC](https://discuss.elastic.co/t/x-pack-configuration-files/151801/2 "2018-10-11T13:41:43Z")

</div>

Hi @Stefano_Bossi,

The following documentation is quite recent and should answer your question:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.3/breaking-changes-6.3.html#\_deprecation\_of\_the\_literal\_x\_pack\_literal\_configuration\_directory](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/breaking-changes-6.3.html#_deprecation_of_the_literal_x_pack_literal_configuration_directory)

You might also move `log4j2.properties`, but make sure to look into any differences between the two files and/or creating a backup before overwriting.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [October 11, 2018, 2:29pm UTC](https://discuss.elastic.co/t/x-pack-configuration-files/151801/3 "2018-10-11T14:29:40Z")

</div>

For `log4j2.properties` you likely want to append it to the end of your log4j properties at the root of your config directory.

---

<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:** [November 8, 2018, 2:29pm UTC](https://discuss.elastic.co/t/x-pack-configuration-files/151801/4 "2018-11-08T14:29:41Z")

</div>

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