# (resolved) DietPi-Ramlog custom logfiles

**URL:** https://dietpi.com/forum/t/resolved-dietpi-ramlog-custom-logfiles/68
**Category:** General Discussion
**Created:** [9 September 2015 06:57 UTC](https://dietpi.com/forum/t/resolved-dietpi-ramlog-custom-logfiles/68 "2015-09-09T06:57:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Aidan\_Hedley](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@Aidan\_Hedley](https://dietpi.com/forum/u/Aidan_Hedley)
#### Post date: [9 September 2015 06:57 UTC](https://dietpi.com/forum/t/resolved-dietpi-ramlog-custom-logfiles/68/1 "2015-09-09T06:57:12Z")

</div>

Bit of a newbie one from me…

I plan to use packages such as iperf, and save results as logfiles. Also some python scripts generating own event lopgs. Is there anything - such as a particular file location I need to use? - My DietPi system logs go to Ramdisk and are backed up hourly. I don’t expect to loose logs as the system is battery supported with a graceful ‘shutdown -h’ on extended power failure.

Hope that makes sense.

---

<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: [9 September 2015 13:50 UTC](https://dietpi.com/forum/t/resolved-dietpi-ramlog-custom-logfiles/68/2 "2015-09-09T13:50:44Z")

</div>

> [@Aidan Hedley](#):
>
> Bit of a newbie one from me…
> 
> I plan to use packages such as iperf, and save results as logfiles. Also some python scripts generating own event lopgs. Is there anything - such as a particular file location I need to use? - My DietPi system logs go to Ramdisk and are backed up hourly. I don’t expect to loose logs as the system is battery supported with a graceful ‘shutdown -h’ on extended power failure.
> 
> Hope that makes sense.

Hi Aidan,

**If you want to allow DietPi-Ramlog to backup and clear your extra logfiles:**

- Make sure your using DietPi-Ramlog Mode #2
- Then point your custom log files into /var/log. eg (/var/log/mylogfile.log).

**If on the other hand you want to keep the contents of your extra log files untouched, for testing, or any other purpose:**

- Change the location of your custom logfiles so they are not inside the /var/log folder. (eg: /root/mylogfiletests.log)

Kind Regards,  
Dan
