# Change log4j2.properties logging location?

**URL:** <https://discuss.elastic.co/t/change-log4j2-properties-logging-location/282319>\
**Category:** Elasticsearch\
**Created:** [August 24, 2021, 8:53am UTC](https://discuss.elastic.co/t/change-log4j2-properties-logging-location/282319 "2021-08-24T08:53:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![riahc3](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@riahc3](https://discuss.elastic.co/u/riahc3)\
**Post date:** [August 24, 2021, 8:53am UTC](https://discuss.elastic.co/t/change-log4j2-properties-logging-location/282319/1 "2021-08-24T08:53:35Z")

</div>

Hello

This really doesnt fit anywhere I think

I want to configure log4j2.properties for both elastic and Logstash to write logs in a daily format (2021.08.24-log-name) and to another location.

I know log4j2 uses variables so how can I configure this?

Thank you

---

<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:** [September 21, 2021, 8:54am UTC](https://discuss.elastic.co/t/change-log4j2-properties-logging-location/282319/2 "2021-09-21T08:54:26Z")

</div>

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