# Log file is giant - 20GB

**URL:** <https://forum.storj.io/t/log-file-is-giant-20gb/11365>\
**Category:** Node Operators\
**Created:** [January 23, 2021, 12:09pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365 "2021-01-23T12:09:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TechAUmNu](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/techaumnu/32/65_2.png) [@TechAUmNu](https://forum.storj.io/u/TechAUmNu)\
**Post date:** [January 23, 2021, 12:09pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365/1 "2021-01-23T12:09:35Z")

</div>

My log file for old node has got to a pretty silly size. Should there not be some limit to stop it using all space on your drive and crashing?

![image](https://lc-storj.ams3.digitaloceanspaces.com/original/2X/a/a6d1e6ec984d4ab04d3ddb11ecd79b56202a5a5b.png)

---

<div class="post-metadata">

**Author:** ![Toyoo](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toyoo/32/1126_2.png) [@Toyoo](https://forum.storj.io/u/Toyoo)\
**Post date:** [January 23, 2021, 12:12pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365/2 "2021-01-23T12:12:55Z")

</div>

Turn on file system compression on this file and don’t think much about it for years. Having logs is useful.

---

<div class="post-metadata">

**Author:** ![Pac](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/pac/32/6053_2.png) [@Pac](https://forum.storj.io/u/Pac)\
**Post date:** [January 23, 2021, 12:28pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365/3 "2021-01-23T12:28:00Z")

</div>

> [@Toyoo](#):
>
> Turn on file system compression on this file and don’t think much about it for years.

Activating NTFS native compression for this particular log file (I guess that’s what you meant) would definitely save some space on such files indeed.  
I suspect @TechAUmNu’s log file would go down to using around 8GiB of space instead of 20GiB. Still quite big.

> [@Toyoo](#):
>
> Having logs is useful.

Agreed 😉  
Although… It might not be useful to keep them for years.  
Personally, I keep 4 months of logs, then I discard them.

I use `logrotate` for doing so on Linux. Surely there must be an alternative for doing the same on Windows?

---

<div class="post-metadata">

**Author:** ![Toyoo](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toyoo/32/1126_2.png) [@Toyoo](https://forum.storj.io/u/Toyoo)\
**Post date:** [January 23, 2021, 12:40pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365/4 "2021-01-23T12:40:05Z")

</div>

> [@Pac](#):
>
> Surely there must be an alternative for doing the same on Windows?

ROTFL LOL!!! Only some third-parties.

---

<div class="post-metadata">

**Author:** ![littleskunk](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/littleskunk/32/63_2.png) [@littleskunk](https://forum.storj.io/u/littleskunk)\
**Post date:** [January 23, 2021, 6:09pm UTC](https://forum.storj.io/t/log-file-is-giant-20gb/11365/5 "2021-01-23T18:09:29Z")

</div>

Logrotate is also available for windows.
