# /var/log/ Huge File Sizes and Cleaning

**URL:** <https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407>\
**Category:** Support apps\
**Tags:** collabora, bug, english\
**Created:** [October 7, 2024, 3:05pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407 "2024-10-07T15:05:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luncheon3462](https://forum.yunohost.org/user_avatar/forum.yunohost.org/luncheon3462/32/8582_2.png) [@Luncheon3462](https://forum.yunohost.org/u/Luncheon3462)\
**Post date:** [October 7, 2024, 3:05pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407/1 "2024-10-07T15:05:24Z")

</div>

**What type of hardware are you using** : Old laptop or computer  
**What YunoHost version are you running** : 11.2.30.2  
**How are you able to access your server** : SSH

### Describe your issue

I was recently having trouble backing up my yunohost server via clone/restic. It would last for days and not finish the job, which hadn’t happened before. I checked the /var/log/ directory and found files that were many GB is size, some as many as 145GB. I looked on this forum and found the thread at [[Resolved] [/var/log] : do the cleaning properly](https://forum.yunohost.org/t/resolved-var-log-do-the-cleaning-properly/14473) which is now closed.

Here is output of du -ah --max-depth=1 | sort -h when run from /var/log/

0 ./alternatives.log  
0 ./btmp  
0 ./btmp.1  
0 ./mail.err  
0 ./rsnapshot.log  
4.0K ./baikal  
4.0K ./fail2ban.log  
4.0K ./fontconfig.log  
4.0K ./invidious  
4.0K ./kern.log  
4.0K ./mail.warn  
4.0K ./mail.warn.1  
4.0K ./mysql  
4.0K ./nextcloud\_\_2  
4.0K ./ntpstats  
4.0K ./php7.4-fpm.log  
4.0K ./php8.1-fpm.log  
4.0K ./php8.2-fpm.log  
4.0K ./php8.3-fpm.log  
4.0K ./private  
4.0K ./rsnapshot.log.1.gz  
4.0K ./sysstat  
4.0K ./wordpress  
8.0K ./debug  
8.0K ./messages  
8.0K ./php8.0-fpm.log  
8.0K ./postgresql  
8.0K ./user.log  
12K ./dpkg.log  
12K ./faillog  
12K ./runit  
28K ./lastlog  
28K ./mail.info  
28K ./mail.log  
28K ./samba  
36K ./unattended-upgrades  
40K ./letsencrypt  
48K ./redis  
52K ./metronome  
68K ./apt  
72K ./debug.1  
80K ./mail.info.1  
80K ./messages.1  
88K ./kern.log.1  
172K ./auth.log  
272K ./wtmp  
696K ./rspamd  
1.2M ./nginx  
16M ./installer  
65M ./yunohost  
117M ./nextcloud  
4.0G ./journal  
30G ./daemon.log  
30G ./syslog  
63G .

Can anyone help me understand why I have log files so large and which ones I can safely delete? And what is the best way to delete them?

Thank you for helping me.

### Share relevant logs or error messages

None.

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [October 7, 2024, 3:30pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407/2 "2024-10-07T15:30:01Z")

</div>

Take a look at this [Daemon.log and syslog suddenly exploding in size to many GBs](https://forum.yunohost.org/t/daemon-log-and-syslog-suddenly-exploding-in-size-to-many-gbs/31210/1)

---

<div class="post-metadata">

**Author:** ![Luncheon3462](https://forum.yunohost.org/user_avatar/forum.yunohost.org/luncheon3462/32/8582_2.png) [@Luncheon3462](https://forum.yunohost.org/u/Luncheon3462)\
**Post date:** [October 8, 2024, 5:45pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407/3 "2024-10-08T17:45:40Z")

</div>

I did follow your link and uninstalled the collobora app and downgraded to the previous version. I will monitor to see if it fixes the problem. thank you

---

<div class="post-metadata">

**Author:** ![OniriCorpe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oniricorpe/32/3356_2.png) [@OniriCorpe](https://forum.yunohost.org/u/OniriCorpe)\
**Post date:** [October 8, 2024, 6:09pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407/4 "2024-10-08T18:09:57Z")

</div>

Moved the topic on the “support apps” section and added the “collabora” tag

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [November 7, 2024, 6:09pm UTC](https://forum.yunohost.org/t/var-log-huge-file-sizes-and-cleaning/31407/5 "2024-11-07T18:09:58Z")

</div>

Closed on November 7, 2024, 6:09pm UTC

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