# Dump logger by script

**URL:** <https://forum.inductiveautomation.com/t/dump-logger-by-script/18347>\
**Category:** Ignition\
**Created:** [June 7, 2018, 3:31pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347 "2018-06-07T15:31:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [June 7, 2018, 3:31pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/1 "2018-06-07T15:31:13Z")

</div>

Hi,

Is there a way using scripting to dump the content of the gateway logger? I would like to do it automaticly.

Thanks.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 7, 2018, 3:41pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/2 "2018-06-07T15:41:12Z")

</div>

It’s already dumped as the wrapper log file. Configure your log rotation service to preserve it as you see fit.

---

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [June 7, 2018, 5:38pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/3 "2018-06-07T17:38:59Z")

</div>

Where in Ignition do I do that?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 7, 2018, 6:17pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/4 "2018-06-07T18:17:38Z")

</div>

It’s not in Ignition. It’s an OS service. See `/etc/logrotate.conf`, and on most distros, `/etc/logrotate.d/*`.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 7, 2018, 6:22pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/5 "2018-06-07T18:22:25Z")

</div>

Actually, the wrapper.log is controlled by the Tanuki service wrapper; configuration is available in the `ignition.conf` file in the `/data/` directory:  
[https://wrapper.tanukisoftware.com/doc/english/props-logging.html](https://wrapper.tanukisoftware.com/doc/english/props-logging.html)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 7, 2018, 6:36pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/6 "2018-06-07T18:36:41Z")

</div>

> [@paul-griffith](#):
>
> configuration is available

Well, some choices are available. Logrotate offers many more.

---

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [June 20, 2018, 7:39pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/7 "2018-06-20T19:39:35Z")

</div>

Ok. But is there a way to dump the content of the logger every day in idb format? I like usind DB Browser for SQL Lite to search in.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 20, 2018, 8:13pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/8 "2018-06-20T20:13:37Z")

</div>

You could use a gateway timer script to simply copy the system\_logs.idb file in the Ignition installation directory. Rotating it would be up to you.

---

<div class="post-metadata">

**Author:** ![Vince](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@Vince](https://forum.inductiveautomation.com/u/Vince)\
**Post date:** [June 21, 2018, 12:42pm UTC](https://forum.inductiveautomation.com/t/dump-logger-by-script/18347/9 "2018-06-21T12:42:32Z")

</div>

Is it safe to copy this file while the gateway is running?
