# how to configure a WR21 with an external Flash Drive to store the debug.txt file

**URL:** <https://forums.digi.com/t/how-to-configure-a-wr21-with-an-external-flash-drive-to-store-the-debug-txt-file/16966>\
**Category:** Digi TransPort WR (Series)\
**Tags:** debug-file\
**Created:** [June 21, 2016, 11:58am UTC](https://forums.digi.com/t/how-to-configure-a-wr21-with-an-external-flash-drive-to-store-the-debug-txt-file/16966 "2016-06-21T11:58:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiamiDade](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MiamiDade](https://forums.digi.com/u/MiamiDade)\
**Post date:** [June 21, 2016, 11:58am UTC](https://forums.digi.com/t/how-to-configure-a-wr21-with-an-external-flash-drive-to-store-the-debug-txt-file/16966/1 "2016-06-21T11:58:38Z")

</div>

How to configure a DIGI Transport WR21 with an external Flash Drive to store the Debug.txt file?

---

<div class="post-metadata">

**Author:** ![James.Wilson](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@James.Wilson](https://forums.digi.com/u/James.Wilson)\
**Post date:** [June 22, 2016, 2:42am UTC](https://forums.digi.com/t/how-to-configure-a-wr21-with-an-external-flash-drive-to-store-the-debug-txt-file/16966/2 "2016-06-22T02:42:25Z")

</div>

Hi

First you will need to format the USB drive with FAT/FAT32

check that the drive is readable from the router

DIR u:

FLASHW~1.CSV 276 16:21:22, 31 May 2016  
ADD\_SC~1.PY 6039 08:59:14, 01 Jun 2016

Disk size 2011 Meg, nb of items:3

if that is OK then you can setup DEBUG in GUI

Configuration/alarms/event setting/local logging

local Drive “U”  
log filename “log.txt”  
log size “10000”

as entrys go into the eventlog they will also be added to the file on usb drive

```
 LOG.TXT 290 07:39:30, 22 Jun 2016

```

FLASHW~1.CSV 276 16:21:22, 31 May 2016  
ADD\_SC~1.PY 6039 08:59:14, 01 Jun 2016

Disk size 2011 Meg, nb of items:3

if you want to add the commands through CLI

event 0 logdrive “u”  
event 0 logfile “log.txt”  
event 0 logsizek 10000

regards

James
