2
.\" Title: journald.conf
3
.\" Author: Lennart Poettering <lennart@poettering.net>
4
.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
6
.\" Manual: journald.conf
10
.TH "JOURNALD\&.CONF" "5" "" "systemd" "journald.conf"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
journald.conf \- Journal service configuration file
34
/etc/systemd/journald\&.conf
37
This files configures various parameters of the systemd journal service
38
\fBsystemd-journald.service\fR(8)\&.
41
All options are configured in the
47
Controls where to store journal data\&. One of
54
journal log data will be stored only in memory, i\&.e\&. below the
56
hierarchy (which is created if needed)\&. If
58
data will be stored preferably on disk, i\&.e\&. below the
60
hierarchy (which is created if needed), with a fallback to
62
(which is created if needed), during early boot and if the disk is not writable\&.
68
is not created if needed, so that its existence controls where log data goes\&.
70
turns off all storage, all log data received will be dropped\&. Forwarding to other targets, such as the console, the kernel log buffer or a syslog daemon will still work however\&. Defaults to
76
Takes a boolean value\&. If enabled (the default) data objects that shall be stored in the journal and are larger than a certain threshold are compressed with the XZ compression algorithm before they are written to the file system\&.
81
Takes a boolean value\&. If enabled (the default) and a sealing key is available (as created by
82
\fBjournalctl\fR(1)\*(Aqs
84
command), forward secure sealing (FSS) for all persistent journal files is enabled\&.
89
Controls whether to split up journal files per user\&. One of
95
each logged in user will get his own journal files, but systemd user IDs will log into the system journal\&. If
97
any user ID will get his own journal files regardless whether it belongs to a system service or refers to a real logged in user\&. If
99
journal files are not split up per\-user and all messages are stored in the single system journal\&. Note that splitting up journal files per\-user is only available of journals are stored persistently\&. If journals are stored on volatile storage (see above) only a single journal file for all user IDs is kept\&. Defaults to
103
\fIRateLimitInterval=\fR, \fIRateLimitBurst=\fR
105
Configures the rate limiting that is applied to all messages generated on the system\&. If in the time interval defined by
106
\fIRateLimitInterval=\fR
107
more messages than specified in
108
\fIRateLimitBurst=\fR
109
are logged by a service all further messages within the interval are dropped, until the interval is over\&. A message about the number of dropped messages is generated\&. This rate limiting is applied per\-service, so that two services which log do not interfere with each others\*(Aq limits\&. Defaults to 200 messages in 10s\&. The time specification for
110
\fIRateLimitInterval=\fR
111
may be specified in the following units:
116
us\&. To turn off any kind of rate limiting, set either value to 0\&.
119
\fISystemMaxUse=\fR, \fISystemKeepFree=\fR, \fISystemMaxFileSize=\fR, \fIRuntimeMaxUse=\fR, \fIRuntimeKeepFree=\fR, \fIRuntimeMaxFileSize=\fR
121
Enforce size limits on the journal files stored\&. The options prefixed with
123
apply to the journal files when stored on a persistent file system, more specifically
124
/var/log/journal\&. The options prefixed with
126
apply to the journal files when stored on a volatile in\-memory file system, more specifically
127
/run/log/journal\&. The former is used only when
129
is mounted, writable and the directory
131
exists\&. Otherwise only the latter applies\&. Note that this means that during early boot and if the administrator disabled persistent logging only the latter options apply, while the former apply if persistent logging is enabled and the system is fully booted up\&.
135
control how much disk space the journal may use up at maximum\&. Defaults to 10% of the size of the respective file system\&.
136
\fISystemKeepFree=\fR
138
\fIRuntimeKeepFree=\fR
139
control how much disk space the journal shall always leave free for other uses if less than the disk space configured in
143
is available\&. Defaults to 5% of the size of the respective file system\&.
144
\fISystemMaxFileSize=\fR
146
\fIRuntimeMaxFileSize=\fR
147
control how large individual journal files may grow at maximum\&. This influences the granularity in which disk space is made available through rotation, i\&.e\&. deletion of historic data\&. Defaults to one eighth of the values configured with
150
\fIRuntimeMaxUse=\fR, so that usually seven rotated journal files are kept as history\&. Specify values in bytes or use K, M, G, T, P, E as units for the specified sizes\&. Note that size limits are enforced synchronously to journal files as they are extended, and need no explicit rotation step triggered by time\&.
155
The maximum time to store entries in a single journal file, before rotating to the next one\&. Normally time\-based rotation should not be required as size\-based rotation with options such as
156
\fISystemMaxFileSize=\fR
157
should be sufficient to ensure that journal files don\*(Aqt grow without bounds\&. However, to ensure that not too much data is lost at once when old journal files are deleted it might make sense to change this value from the default of one month\&. Set to 0 to turn off this feature\&. This setting takes time values which may be suffixed with the units year, month, week, day, h, m to override the default time unit of seconds\&.
160
\fIMaxRetentionSec=\fR
162
The maximum time to store journal entries\&. This controls whether journal files containing entries older then the specified time span are deleted\&. Normally time\-based deletion of old journal files should not be required as size\-based deletion with options such as
164
should be sufficient to ensure that journal files don\*(Aqt grow without bounds\&. However, to enforce data retention policies it might make sense to change this value from the default of 0 (which turns off this feature)\&. This setting also takes time values which may be suffixed with the units year, month, week, day, h, m to override the default time unit of seconds\&.
167
\fIForwardToSyslog=\fR, \fIForwardToKMsg=\fR, \fIForwardToConsole=\fR
169
Control whether log messages received by the journal daemon shall be forwarded to a traditional syslog daemon, to the kernel log buffer (kmsg), or to the system console\&. These options take boolean arguments\&. If forwarding to syslog is enabled but no syslog daemon is running the respective option has no effect\&. By default only forwarding to syslog is enabled\&. These settings may be overridden at boot time with the kernel command line options
170
systemd\&.journald\&.forward_to_syslog=,
171
systemd\&.journald\&.forward_to_kmsg=
173
systemd\&.journald\&.forward_to_console=\&.
176
\fIMaxLevelStore=\fR, \fIMaxLevelSyslog=\fR, \fIMaxLevelKMsg=\fR, \fIMaxLevelConsole=\fR
178
Controls the maximum log level of messages that are stored on disk, forwarded to syslog, kmsg or the console (if that is enabled, see above)\&. As argument, takes one of
187
or integer values in the range of 0\&.\&.7 (corresponding to the same levels)\&. Messages equal or below the log level specified are stored/forwarded, messages above are dropped\&. Defaults to
192
\fIMaxLevelSyslog=\fR, to ensure that the all messages are written to disk and forwarded to syslog\&. Defaults to
199
\fIMaxLevelConsole=\fR\&.
204
Change the console TTY to use if
205
\fIForwardToConsole=yes\fR
206
is used\&. Defaults to
213
\fBsystemd-journald.service\fR(8),
215
\fBsystemd.journal-fields\fR(7),
216
\fBsystemd-system.conf\fR(5)