# (resolved) Don't delete Log files, please!

**URL:** <https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154>\
**Category:** General Discussion\
**Created:** [12 November 2015 17:47 UTC](https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154 "2015-11-12T17:47:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deleted\_User\_201](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@Deleted\_User\_201](https://dietpi.com/forum/u/Deleted_User_201)\
**Post date:** [12 November 2015 17:47 UTC](https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154/1 "2015-11-12T17:47:39Z")

</div>

Hi,  
I’m new (3 months) user of DietPi… I love it.

I’ve read [https://dietpi.com/forum/t/dietpi-survey-information/32/1](https://dietpi.com/forum/t/dietpi-survey-information/32/1) tread

I have enabled the Full Log System (syslogd + logrotate).  
I see the log files in /var/log in the disk (correct):

[…]  
-rwxrwxr-x 1 root adm 153804 Nov 12 18:29 auth.log  
-rwxrwxr-x 1 root adm 0 Nov 10 11:21 auth.log.1  
-rwxrwxr-x 1 root adm 0 Nov 10 11:21 auth.log.2.gz  
[…]

But when I reboot the DietPi deletes the using recent log and logrotate create example.log.1 0 Kb … I think this is not useful in Full Log System.  
How can I change this option to not delete log files on reboot?

Thanks!

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [12 November 2015 19:28 UTC](https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154/2 "2015-11-12T19:28:57Z")

</div>

> [@scx77](#):
>
> Hi,  
> I’m new (3 months) user of DietPi… I love it.
> 
> I’ve read [https://dietpi.com/forum/t/dietpi-survey-information/32/1](https://dietpi.com/forum/t/dietpi-survey-information/32/1) tread
> 
> I have enabled the Full Log System (syslogd + logrotate).  
> I see the log files in /var/log in the disk (correct):
> 
> […]  
> -rwxrwxr-x 1 root adm 153804 Nov 12 18:29 auth.log  
> -rwxrwxr-x 1 root adm 0 Nov 10 11:21 auth.log.1  
> -rwxrwxr-x 1 root adm 0 Nov 10 11:21 auth.log.2.gz  
> […]
> 
> But when I reboot the DietPi deletes the using recent log and logrotate create example.log.1 0 Kb … I think this is not useful in Full Log System.  
> How can I change this option to not delete log files on reboot?
> 
> Thanks!

The only time DietPi will automatically delete log file contents is with the hourly cron job. This will only run if you have selected a DietPi-Ramlog mode 1/2. I’ll need to see some settings.

**Whats the value of:**

```plaintext
cat /DietPi/dietpi/.installed | grep 'INDEX_LOGGING_CURRENT ' | awk '{print $2}'

```

**and**

```plaintext
df -h

```

---

<div class="post-metadata">

**Author:** ![Deleted\_User\_201](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@Deleted\_User\_201](https://dietpi.com/forum/u/Deleted_User_201)\
**Post date:** [13 November 2015 01:45 UTC](https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154/3 "2015-11-13T01:45:20Z")

</div>

```nohighlight
cat /DietPi/dietpi/.installed | grep 'INDEX_LOGGING_CURRENT ' | awk '{print $2}'

```

**-3**

```nohighlight
df -h

```

/dev/root 59G 1.1G 58G 2% /  
devtmpfs 483M 0 483M 0% /dev  
tmpfs 487M 0 487M 0% /dev/shm  
tmpfs 487M 6.5M 481M 2% /run  
tmpfs 5.0M 0 5.0M 0% /run/lock  
tmpfs 487M 0 487M 0% /sys/fs/cgroup  
tmpfs 10M 960K 9.1M 10% /DietPi  
tmpfs 487M 0 487M 0% /tmp  
/dev/mmcblk0p1 56M 21M 36M 37% /boot  
tmpfs 98M 0 98M 0% /run/user/1000  
  
  
Grazie!

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [13 November 2015 13:07 UTC](https://dietpi.com/forum/t/resolved-dont-delete-log-files-please/154/4 "2015-11-13T13:07:38Z")

</div>

Found the culprit, dietpi-ramlog is clearing log file contents during boot. This will be resolved in v101 update.

[https://github.com/Fourdee/DietPi/issues/112](https://github.com/Fourdee/DietPi/issues/112)
