0

I am investigating the retention of logs in var/log/ for a server that hosts Gitlab. There are multiple logs here as listed below: Boot.log Cron maillog Messages Secure spooler yum.log

Is there a way that I can control the retention of these logs? Is there anything that's controlled via the gitlab.rb file? Is there a general way of identifying where logs are controlled?

1
  • 1
    Google: logrotate Google: Gitlab log rotation Commented Mar 22, 2023 at 8:24

1 Answer 1

1

Look at logrotate.conf manual pages (a.k.a. man pages). You can use logrotate which is part of the base RHEL install.

Here is a tutorial with examples.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .