diff --git a/templates/gitlab.rb.j2 b/templates/gitlab.rb.j2
index edd66721988f1b1f3382a12b7e7899f6af2612f9..7b99bc7f15c03dce389062f389577415ac2d4839 100644
--- a/templates/gitlab.rb.j2
+++ b/templates/gitlab.rb.j2
@@ -57,6 +57,9 @@ gitlab_rails['omniauth_providers'] = [
 ]
 
 {% endif %}
+### Logrotate
+logging['logrotate_rotate'] = 14 # keep 14 rotated logs
+
 ### Container Registry settings
 registry_external_url 'https://{{ git_url }}:5050'