# Custom log4j2 configuration missing from docs

**URL:** <https://community.dhis2.org/t/custom-log4j2-configuration-missing-from-docs/53735>\
**Category:** Server Administration - Administration-du-Serveur\
**Tags:** sysadmin\
**Created:** [28 June 2023 20:34 UTC](https://community.dhis2.org/t/custom-log4j2-configuration-missing-from-docs/53735 "2023-06-28T20:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhelbing](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/mhelbing/32/40017_2.png) [@mhelbing](https://community.dhis2.org/u/mhelbing)\
**Post date:** [28 June 2023 20:34 UTC](https://community.dhis2.org/t/custom-log4j2-configuration-missing-from-docs/53735/1 "2023-06-28T20:34:49Z")

</div>

I would like to override the hourly log rotation for dhis-audit.log in 2.37.

On [Audit - DHIS2 Documentation](https://docs.dhis2.org/en/manage/performing-system-administration/dhis-core-version-239/audit.html) there is mention of examples of advanced custom logging configurations, but the link just takes you back to the same page and there are no examples present:

_**An example of custom log4j2 configuration can be found [here]**([Audit - DHIS2 Documentation](https://docs.dhis2.org/en/manage/performing-system-administration/dhis-core-version-239/audit.html)): it shows how to configure DHIS2 to save all logs into an external storage location, rotate them on a weekly basis and retain them for 30 days. Please read the [application logging section](https://docs.dhis2.org/en/manage/performing-system-administration/dhis-core-version-239/installation.html#install_application_logging) on how to use it._

Would it be possible to add the examples to the doc and/or post them in response to this message?

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [29 June 2023 17:25 UTC](https://community.dhis2.org/t/custom-log4j2-configuration-missing-from-docs/53735/2 "2023-06-29T17:25:05Z")

</div>

Thank you for the post @mhelbing and for pointing out the missing link. I’ve created an issue about it in the Documentation repository ([issue: log4j2 example link broken/missing "[here]()" · Issue #1201 · dhis2/dhis2-docs · GitHub](https://github.com/dhis2/dhis2-docs/issues/1201))

I think there are examples that are helpful for configuration here: [system administration - log-configuration](https://docs.dhis2.org/en/manage/performing-system-administration/dhis-core-version-master/installation.html#log-configuration)

I hope this helps! 👍
