# Log file getting 2GB size increase in just under an hour

**URL:** <https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487>\
**Category:** troubleshooting\
**Tags:** windows-gui, log-rotate\
**Created:** [August 11, 2024, 7:31pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487 "2024-08-11T19:31:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrzan10](https://storj.bcdn.literatehosting.com/letter_avatar/mrzan10/32/6_449c533f586939b6e5f246632a46421f.png) [@mrzan10](https://forum.storj.io/u/mrzan10)\
**Post date:** [August 11, 2024, 7:31pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/1 "2024-08-11T19:31:27Z")

</div>

Hi! I have a problem with my node. The node is generating an absurd amount of logs. Node started to crash every few hours and the log file size when the crash happens is about 20-30GB. I cannot open logs since the file is just to big. How to know what is happening?

Operating system: Windows  
Node version 1.109.2

---

<div class="post-metadata">

**Author:** ![ACarneiro](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/acarneiro/32/1129_2.png) [@ACarneiro](https://forum.storj.io/u/ACarneiro)\
**Post date:** [August 11, 2024, 7:43pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/2 "2024-08-11T19:43:49Z")

</div>

Wow! What is the log level on your config.yaml file?

---

<div class="post-metadata">

**Author:** ![mrzan10](https://storj.bcdn.literatehosting.com/letter_avatar/mrzan10/32/6_449c533f586939b6e5f246632a46421f.png) [@mrzan10](https://forum.storj.io/u/mrzan10)\
**Post date:** [August 11, 2024, 7:45pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/3 "2024-08-11T19:45:17Z")

</div>

Info is the level of log.

---

<div class="post-metadata">

**Author:** ![JWvdV](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jwvdv/32/7814_2.png) [@JWvdV](https://forum.storj.io/u/JWvdV)\
**Post date:** [August 11, 2024, 7:50pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/4 "2024-08-11T19:50:25Z")

</div>

What’s the content of the last lines of the log?

How did you install it on Windows, is it running in WSL or docker by any chance?

---

<div class="post-metadata">

**Author:** ![mrzan10](https://storj.bcdn.literatehosting.com/letter_avatar/mrzan10/32/6_449c533f586939b6e5f246632a46421f.png) [@mrzan10](https://forum.storj.io/u/mrzan10)\
**Post date:** [August 11, 2024, 7:52pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/5 "2024-08-11T19:52:48Z")

</div>

cannot open the file since its to big when it crashes, I installed it with Windows GUI.

---

<div class="post-metadata">

**Author:** ![JWvdV](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jwvdv/32/7814_2.png) [@JWvdV](https://forum.storj.io/u/JWvdV)\
**Post date:** [August 11, 2024, 7:55pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/6 "2024-08-11T19:55:55Z")

</div>

In Powershell:

```auto
Get-Content ./log.log -Tail 10

```

---

<div class="post-metadata">

**Author:** ![mrzan10](https://storj.bcdn.literatehosting.com/letter_avatar/mrzan10/32/6_449c533f586939b6e5f246632a46421f.png) [@mrzan10](https://forum.storj.io/u/mrzan10)\
**Post date:** [August 11, 2024, 7:58pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/7 "2024-08-11T19:58:04Z")

</div>

thanks will use it when it crashes

---

<div class="post-metadata">

**Author:** ![ACarneiro](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/acarneiro/32/1129_2.png) [@ACarneiro](https://forum.storj.io/u/ACarneiro)\
**Post date:** [August 11, 2024, 8:03pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/8 "2024-08-11T20:03:21Z")

</div>

Use it now. If the log is groing so quickly it may be throwing a ton of error messages already and it might be useful to know what those are…

---

<div class="post-metadata">

**Author:** ![Solu](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/solu/32/62_2.png) [@Solu](https://forum.storj.io/u/Solu)\
**Post date:** [August 11, 2024, 8:28pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/9 "2024-08-11T20:28:34Z")

</div>

Just in case you need more log level, there are also the following levels available:

- warn
- error
- fatal

But you should check the cause of you node like @JWvdV descibed.

---

<div class="post-metadata">

**Author:** ![Stez](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/stez/32/1130_2.png) [@Stez](https://forum.storj.io/u/Stez)\
**Post date:** [August 11, 2024, 8:31pm UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/10 "2024-08-11T20:31:46Z")

</div>

I noticed large log files in Windows as well, although _it doesn’t have to_ signal an issue. It might, but a large file can be normal. With log-level info (default) every upload and download gets logged. Especially with the test-data lately, log files can grow rapidly. In my experience by 2GB+ per day, simply due to the traffic.

Not ideal, but simply stopping the storagenode-service (through the Services-app in Windows), deleting the log file and restarting the service would keep it clean…-ish. I don’t recommend it, as every restart would signal a filewalker with added I/O.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [August 12, 2024, 3:27am UTC](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487/11 "2024-08-12T03:27:18Z")

</div>

You may also change the log level on the fly without restart, using the debug port:

> [@Guide to debug my storage node, uplink, s3 gateway, satellite](https://forum.storj.io/t/guide-to-debug-my-storage-node-uplink-s3-gateway-satellite/1372):
>
> We have integrated a package called monkit in all storage nodes. It is very usefull for debuging. By default it will open a random port. In order to connect to the debug port you will need to: Add debug.addr: ":5999" to the config file. Now the port is fixed and will not change on every restart. Add -p 127.0.0.1:5999:5999 to the docker run command. Ready for action! You can request the following informations: curl localhost:5999/mon/funcs Find out how long a function like GetExpired need…

You may configure a logrotate for Windows, the config file for logrotate can be like this:

> [@How to create daily storagenode logs](https://forum.storj.io/t/topic/6199/5):
>
> are you running in a NAS or Windows or Linux? In Ubuntu I use the “logrotate” command in a cron job to create/compress log files. First you have to make sure you have added in the “Log Location” and “Log level” fields in the “config.yaml” Then look in the “/etc/logrotate.d/” folder, you’ll see a list of files, those are the configs used to rotate logfiles ( usually found in “/var/log/”). I just put a “storj” config file in the logrotate.d/ and it’s done automatically To rotate my logs i use …

or you may use a custom script like this:

> [@Native logs rotation in Windows with a simple PowerShell script](https://forum.storj.io/t/topic/6241/1):
>
> Hello, Unfortunately, in the current windows version of the Storage Node there is no way to rotate or limit the size of the generated logs files. You cannot delete them from the GUI because they are locked by the services processes. Using Clear-Content in PowerShell to reset the files works but there is no easy solution if you want to keep a few days / weeks of logs. I have written a small PowerShell script that can rotate the Storjs Logs without the need of Stop\>Start the services to release …
