# 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:** 1\
**Showing post:** 11

<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 …

---

_[View the full topic](https://forum.storj.io/t/log-file-getting-2gb-size-increase-in-just-under-an-hour/27487)._
