# Limit log file size?

**URL:** <https://forum.storj.io/t/limit-log-file-size/22754>\
**Category:** FAQ\
**Tags:** docker, log-rotate\
**Created:** [May 21, 2023, 7:05pm UTC](https://forum.storj.io/t/limit-log-file-size/22754 "2023-05-21T19:05:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [May 22, 2023, 4:53am UTC](https://forum.storj.io/t/limit-log-file-size/22754/4 "2023-05-22T04:53:40Z")

</div>

If you [redirected logs to the file](https://docs.storj.io/node/resources/faq/redirect-logs), the logrotate will work the same way, as for regular services.  
If you didn’t - you may specify the internal log limits and rotation with options

> [@My docker run commands for multinodes on Synology NAS](https://forum.storj.io/t/my-docker-run-commands-for-multinodes-on-synology-nas/22034/1):
>
> ```auto
> --log-opt max-size=10m \
> --log-opt max-file=5 \
> 
> ```

---

_[View the full topic](https://forum.storj.io/t/limit-log-file-size/22754)._
