Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
10f6da98
Commit
10f6da98
authored
Jun 14, 2021
by
Brie Carranza
Committed by
Nick Gaskill
Jun 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add notes on which services are managed by logrotate, svlogd, both or neither
parent
c109716d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
doc/administration/logs.md
doc/administration/logs.md
+36
-0
No files found.
doc/administration/logs.md
View file @
10f6da98
...
...
@@ -21,6 +21,42 @@ including adjusting log retention, log forwarding,
switching logs from JSON to plain text logging, and more.
-
[
How to parse and analyze JSON logs
](
troubleshooting/log_parsing.md
)
.
## Log Rotation
The logs for a given service may be managed and rotated by:
-
`logrotate`
-
`svlogd`
(
`runit`
's service logging daemon)
-
`logrotate`
and
`svlogd`
-
Or not at all
The table below includes information about what is responsible for managing and rotating logs for
the included services. Logs
[
managed by `svlogd`
](
https://docs.gitlab.com/omnibus/settings/logs.html#runit-logs
)
are written to a file called
`current`
. The
`logrotate`
service built into GitLab
[
manages all logs
](
https://docs.gitlab.com/omnibus/settings/logs.html#logrotate
)
except those captured by
`runit`
.
| Log Type | Managed by logrotate | Managed by svlogd/runit |
| ----------------------------------------------- | -------------------- | ----------------------- |
|
[
Alertmanager Logs
](
#alertmanager-logs
)
| N | Y |
|
[
Crond Logs
](
#crond-logs
)
| N | Y |
|
[
Gitaly
](
#gitaly-logs
)
| Y | Y |
|
[
GitLab Exporter For Omnibus
](
#gitlab-exporter
)
| N | Y |
|
[
GitLab Pages Logs
](
#pages-logs
)
| Y | Y |
| GitLab Rails | Y | N |
|
[
GitLab Shell Logs
](
#gitlab-shelllog
)
| Y | N |
|
[
Grafana Logs
](
#grafana-logs
)
| N | Y |
|
[
LogRotate Logs
](
#logrotate-logs
)
| N | Y |
|
[
Mailroom
](
#mail_room_jsonlog-default
)
| Y | Y |
|
[
NGINX
](
#nginx-logs
)
| Y | Y |
|
[
PostgreSQL Logs
](
#postgresql-logs
)
| N | Y |
|
[
Prometheus Logs
](
#prometheus-logs
)
| N | Y |
|
[
Puma
](
#puma-logs
)
| Y | Y |
|
[
Redis Logs
](
#redis-logs
)
| N | Y |
|
[
Registry Logs
](
#registry-logs
)
| N | Y |
|
[
Workhorse Logs
](
#workhorse-logs
)
| Y | Y |
## `production_json.log`
This file lives in
`/var/log/gitlab/gitlab-rails/production_json.log`
for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment