# Managing oversized Ansible logs: Best practices to rotate/compress logs?

**URL:** <https://forum.ansible.com/t/managing-oversized-ansible-logs-best-practices-to-rotate-compress-logs/41838>\
**Category:** Get Help\
**Created:** [April 21, 2025, 3:35am UTC](https://forum.ansible.com/t/managing-oversized-ansible-logs-best-practices-to-rotate-compress-logs/41838 "2025-04-21T03:35:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangsijun17](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/huangsijun17/32/7051_2.png) [@huangsijun17](https://forum.ansible.com/u/huangsijun17)\
**Post date:** [April 21, 2025, 3:35am UTC](https://forum.ansible.com/t/managing-oversized-ansible-logs-best-practices-to-rotate-compress-logs/41838/1 "2025-04-21T03:35:28Z")

</div>

Hi community!  
We’re facing issues with Ansible log files (`ansible.log`) growing too large (over 10MB daily).  
**Current setup** :

- Basic config in `ansible.cfg`:

```ini
[defaults]
log_path = ./log/ansible.log
```
