# Save debug Node into a file

**URL:** https://discourse.nodered.org/t/save-debug-node-into-a-file/46299
**Category:** General
**Created:** [26 May 2021 18:35 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299 "2021-05-26T18:35:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)
#### Post date: [26 May 2021 18:35 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/1 "2021-05-26T18:35:06Z")

</div>

Hello  
i have a flow and of course some debug node!  
no the debug information comes not often - most in the night.  
Is there a way to save the hole debug information into a file?

have a nice day  
vinc

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [26 May 2021 18:36 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/2 "2021-05-26T18:36:48Z")

</div>

There are several options. A simple option is to use [flogger](https://flows.nodered.org/node/node-red-contrib-flogger) in place of or alongside debug nodes.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [27 May 2021 08:17 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/3 "2021-05-27T08:17:11Z")

</div>

If you set your debug node to output to the console then it will log it to the node red log. If you are using a linux system (such as on a pi) then it will go to /var/log/syslog so you can look at that file, or or you can use `journalctl` to look back at the node red log. I don't know where it goes on Windows. Alternatively, if you start node-red running in a terminal and leave the terminal open then it will be in there.

---

<div class="post-metadata">

### Author: ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)
#### Post date: [27 May 2021 18:50 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/4 "2021-05-27T18:50:55Z")

</div>

@Colin merci found it - but it is not just the information from debug, but just all requests!  
Maybe i will have to install @Steve-Mcl mentioned flogger - merci

vinc

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [27 May 2021 20:12 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/5 "2021-05-27T20:12:59Z")

</div>

You can pipe it through grep to find only the bits you are interested in. It depends what you are trying to do. If you are just trying to analyse a fault, for example, then that should be good enough, but if you are looking for more permanent logging for later analysis then a more sophisticated solution is probably worth the extra effort.

---

<div class="post-metadata">

### Author: ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)
#### Post date: [28 May 2021 17:40 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/6 "2021-05-28T17:40:52Z")

</div>

@Steve-Mcl i installed flogger but i got a  
cant write file  
and yes i have it on a Raspi Linux  
gruss  
vinc

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [28 May 2021 17:51 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/7 "2021-05-28T17:51:48Z")

</div>

where did you try to write file?

config:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/36f5d736bb07dda7aaa34f975b6a1706d4aa8cdf.png)

node:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2f3f8957b3252117c4221af2da806e878c9b245b.png)

Does the account that runs node-red have permissions to write to that areas?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [27 July 2021 17:52 UTC](https://discourse.nodered.org/t/save-debug-node-into-a-file/46299/8 "2021-07-27T17:52:17Z")

</div>

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