Skip to content

Docs feedback: Add notes on determining which logs managed by logrotate and which by runit/svlogd

In the docs about GitLab Logs in general and logrotate in particular, we say:

The logrotate service built into GitLab manages all logs except those captured by runit.

It would be nice to do one or both of the following:

  1. document which GitLab-provided services have logs managed by logrotate and which have logs captured by runit via svlogd
  2. document the commands one should run on their instance to determine which GitLab-provided services have logs managed by logrotate and which have logs captured by runit via svlogd

1

In the Chef section of the omnibus-gitlab project, there's a file where we define which services are managed by logrotate, see line 5 of files/gitlab-cookbooks/logrotate/attributes/default.rb.

See omnibus-gitlab#6182 (closed) for further notes on logrotate handling.

2

Possible ways to accomplish item 2 (without breaking out GitLab-provided services) include:

pstree     -A --long       $(ps -C runsvdir -opid=)

or

ps auxww | grep --color=auto [s]vlogd

Thanks @admiralboom for the first pass at this!

I am opening this on behalf of a customer. GitLab team members with access to ZenDesk can learn more in the ticket 🎫 .

Edited by Brie Carranza