# Node-red Error Log File Location

**URL:** <https://discourse.nodered.org/t/node-red-error-log-file-location/83742>\
**Category:** General\
**Tags:** windows, log\
**Created:** [15 December 2023 11:19 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742 "2023-12-15T11:19:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [15 December 2023 11:19 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/1 "2023-12-15T11:19:25Z")

</div>

Good Evening!!

I was running in node-red on windows PC, no interrupt on my node flow.  
But, here I have problem in My Local Disk: **"C"** drive memory has raising day by day.  
As my knowledge **Node-red Error**  **Log File** is stored in drive **"C"**.  
I can't find the log file location in my PC. Kindly support to solve the issue.

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

Pc OS : Windows 10

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 December 2023 13:58 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/2 "2023-12-15T13:58:38Z")

</div>

On Windows, you have to know how you started Node-RED as that defines where the log goes (if anywhere).

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [16 December 2023 04:46 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/3 "2023-12-16T04:46:33Z")

</div>

I can't find that, please could you able to send any sample path image on windows.

Now, I have uploaded example image for error log.

![image (1)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbbe98f67b8a82bb86c4c67642db4069c035da6a.png)

Note : This error log image taken from ubuntu platform. **pm2 status**

---

<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:** [16 December 2023 07:17 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/4 "2023-12-16T07:17:56Z")

</div>

Windows does not redirect console output to a log file by default

To capture output you need to redirect it:

```auto
node-red > node-red-log.log

```

This will create a new file each time you start node-red

So if you want to append:

```auto
node-red >> node-red-log.log

```

If you want separate logs:

```auto
node-red 2>node-red-error.log 1>node-red-log.log

```

Or if you like to mix outputs (stdout & stderr) in one single file you can use:

```auto
node-red > node-red.log 2>&1

```

---

<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:** [16 December 2023 07:19 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/5 "2023-12-16T07:19:22Z")

</div>

> [@ganeshiac](#):
>
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb46f54d40a85227ff141630c977760e564f5e4d.png)
> 
> Pc OS : Windows 11

Node v12 is REALLY old and no longer in support. You should be on Node 18LTS at least

---

<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:** [16 December 2023 10:06 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/6 "2023-12-16T10:06:12Z")

</div>

> [@ganeshiac](#):
>
> pm2 status

If you use PM2 for running node-red on Ubuntu (rather than the usual method using systemd) then you will have to do something to manage the logs. Using systemd logs are automatically rotated.

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [16 December 2023 10:19 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/7 "2023-12-16T10:19:27Z")

</div>

Okay, I will update.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 December 2023 13:42 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/8 "2023-12-16T13:42:22Z")

</div>

> [@ganeshiac](#):
>
> I can't find that, please could you able to send any sample path image on windows.

No, not really. You absolutely need to find out how you are running Node-RED. You've not even shared where those log files exist.

There are multiple ways to start long-running services on Windows. Look in Task manager, there is a "start-up apps" section, right-click on the column headings are add the startup type and command line columns then look for Node-RED.

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [18 December 2023 06:02 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/9 "2023-12-18T06:02:24Z")

</div>

Good Morning,

Thank you so much for sharing this information. I will check and revert back

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [18 December 2023 06:30 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/10 "2023-12-18T06:30:30Z")

</div>

As your above message, I had look into task manager options there is no node-red app icon present. I have attached the corresponding image as given.

 ![image (2)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/623a690bce731ddf787a842772c64ea71e2aca72.png)

This is for your reference.

---

<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:** [18 December 2023 07:53 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/11 "2023-12-18T07:53:55Z")

</div>

Is it that you have forgotten how you installed and run node red, or have you taken over the system from someone else?

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [18 December 2023 09:24 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/12 "2023-12-18T09:24:07Z")

</div>

Yeah, sure. I will look into to solve this error.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 December 2023 12:10 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/13 "2023-12-18T12:10:50Z")

</div>

> [@ganeshiac](#):
>
> I had look into task manager options there is no node-red app icon present. I have attached the corresponding image as given.

That is a very short list. Much shorter than a standard PC I think. So I don't think you are seeing everything. Is that a corporately managed PC? If so, I would imagine that Node-RED is being run under a different service ID?

Alternatively, I see that you are using Siemens TIA - I think that might have Node-RED built-in but I think that is a remote instance not local?

---

<div class="post-metadata">

**Author:** ![ganeshiac](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@ganeshiac](https://discourse.nodered.org/u/ganeshiac)\
**Post date:** [19 December 2023 06:02 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/14 "2023-12-19T06:02:17Z")

</div>

Of course, that is remote instance. In, task scheduler there is node-red task is running.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 December 2023 10:20 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/15 "2023-12-19T10:20:51Z")

</div>

> [@ganeshiac](#):
>
> In, task scheduler there is node-red task is running

In that case, you do know how Node-RED is running? What are the parameters/settings?
