Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very large log files #1544

Open
vitalyzhakov opened this issue Mar 13, 2018 · 6 comments
Open

Very large log files #1544

vitalyzhakov opened this issue Mar 13, 2018 · 6 comments
Labels

Comments

@vitalyzhakov
Copy link

Hello!

I think, gitlab container takes up a lot of disk space.

root@edc9dbd271eb:/var/log/gitlab# du --max-depth=1 -h
1.5G	./nginx
8.8G	./gitlab
286M	./gitlab-shell
735M	./supervisor
12G	.

May be exists cron script for cleaning up old logs?

@drujd
Copy link
Contributor

drujd commented Mar 15, 2018

root@8da3f4eb72b2:/home/git/gitlab# /etc/cron.daily/logrotate
error: /etc/logrotate.conf:7 unknown group 'syslog'

But that's probably not just it. Logrotate needs some different default config, gitlab logs can grow a LOT over 52 weeks...

@hardikns
Copy link

Can log rotate be fixed in upcoming release?
Is it something that needs to be fixed in ubuntu base image?

@drujd
Copy link
Contributor

drujd commented Apr 24, 2018

The problem with "unknown group 'syslog'" has already been fixed and merged. Another possible problem is that sidekiq has its own log rotation that conflicts with logrotate.

I have solved this by disabling sidekiq rotation, modifying logrotate settings (to rotate based on size) and running logrotate hourly, not daily.

@stale
Copy link

stale bot commented May 7, 2020

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.

@stale stale bot added the wontfix label May 7, 2020
@josefglatz
Copy link

@drujd do you do the logrotate in the host system or in the container? #1544 (comment)

@nullaegy
Copy link

we have the same issue, is there any progress with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants