# Logrotate not working

**URL:** <https://community.zammad.org/t/logrotate-not-working/4750>\
**Category:** Technical assistance\
**Created:** [June 10, 2020, 6:37am UTC](https://community.zammad.org/t/logrotate-not-working/4750 "2020-06-10T06:37:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newan](https://community.zammad.org/user_avatar/community.zammad.org/newan/32/361_2.png) [@Newan](https://community.zammad.org/u/Newan)\
**Post date:** [June 10, 2020, 6:37am UTC](https://community.zammad.org/t/logrotate-not-working/4750/1 "2020-06-10T06:37:27Z")

</div>

### Infos:

- Used Zammad version: Zammad Version 3.3.x
- Used Zammad installation source: package
- Operating system: Debian
- Browser + version: Chrome

Hello, my logfile is 14GB from 2018. No logrotate is used. Is there any way to active the logrotate?

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [June 16, 2020, 6:52am UTC](https://community.zammad.org/t/logrotate-not-working/4750/2 "2020-06-16T06:52:40Z")

</div>

Is logrotate installed on your system?  
Usually the package installation comes with logrotate scripts.

Right now I’m failing to find the proove for that, but my systems all did that my themselves.

---

<div class="post-metadata">

**Author:** ![Newan](https://community.zammad.org/user_avatar/community.zammad.org/newan/32/361_2.png) [@Newan](https://community.zammad.org/u/Newan)\
**Post date:** [June 16, 2020, 8:17am UTC](https://community.zammad.org/t/logrotate-not-working/4750/3 "2020-06-16T08:17:38Z")

</div>

apt-get install logrotate  
Paketlisten werden gelesen… Fertig  
Abhängigkeitsbaum wird aufgebaut.  
Statusinformationen werden eingelesen… Fertig  
logrotate ist schon die neueste Version (3.11.0-0.1).

Totally fine with me. Can I set this again somehow?

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [June 16, 2020, 8:55am UTC](https://community.zammad.org/t/logrotate-not-working/4750/4 "2020-06-16T08:55:54Z")

</div>

file: `/etc/logrotate.d/zammad`

```bash
# zammad logs:
/var/log/zammad/*.log {
  daily
  missingok
  rotate 14
  compress
  delaycompress
  notifempty
  copytruncate
}

```

Should help you.

---

<div class="post-metadata">

**Author:** ![Newan](https://community.zammad.org/user_avatar/community.zammad.org/newan/32/361_2.png) [@Newan](https://community.zammad.org/u/Newan)\
**Post date:** [June 16, 2020, 9:18am UTC](https://community.zammad.org/t/logrotate-not-working/4750/5 "2020-06-16T09:18:29Z")

</div>

ok, thanks. My permissions was wrong:

chmod 0755 /var/log/zammad

fixed it. thanks!

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [October 14, 2020, 9:18am UTC](https://community.zammad.org/t/logrotate-not-working/4750/6 "2020-10-14T09:18:33Z")

</div>

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