# Rolling policy for nexus.log not working

**URL:** <https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735>\
**Category:** Sonatype Nexus Repository\
**Created:** [October 30, 2018, 5:58am UTC](https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735 "2018-10-30T05:58:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![koteswararao.gudla](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@koteswararao.gudla](https://community.sonatype.com/u/koteswararao.gudla)\
**Post date:** [October 30, 2018, 5:58am UTC](https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735/1 "2018-10-30T05:58:19Z")

</div>

Hi All,

In my /nexus/conf/logback.xml  
I mentioned maxhistory hasa 90 in this config file in rolling policy, but its not getting reflected, Please advise

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [October 30, 2018, 2:59pm UTC](https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735/2 "2018-10-30T14:59:10Z")

</div>

You’re modifying the wrong file. Make the change in logback-nexus.xml. That file has a default rolling policy of 90 days in it.

---

<div class="post-metadata">

**Author:** ![david](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/david/32/455_2.png) [@david](https://community.sonatype.com/u/david)\
**Post date:** [February 2, 2019, 12:40am UTC](https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735/3 "2019-02-02T00:40:52Z")

</div>

I’m trying to make a similar change. To clarify, in Nexus 3, should this logback-nexus.xml be located in the “/nexus-data/etc/logback” path?

---

<div class="post-metadata">

**Author:** ![mworthington](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mworthington/32/64_2.png) [@mworthington](https://community.sonatype.com/u/mworthington)\
**Post date:** [February 4, 2019, 4:15pm UTC](https://community.sonatype.com/t/rolling-policy-for-nexus-log-not-working/735/4 "2019-02-04T16:15:19Z")

</div>

Note: the logback-nexus.xml suggestion applies only to Nexus 2.x, specifically `$INSTALL_DIR/sonatype-work/nexus/conf/logback-nexus.xml`

As noted on [How to override logback config in Nexus 3?](http://community.sonatype.com/t/how-to-override-logback-config-in-nexus-3/1151), as of Nexus 3.15.2, the corresponding file for Nexus 3.x is not in the sonatype-work folder. Rather, it is in the nexus version folder `$INSTALL_DIR/nexus-3.15.0-01/etc/logback/logback.xml`
