X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fjournalctl.xml;h=0e779b952c0813538ce47af48320eccd5339d858;hp=fa29c4103ca521007485611591c790eafd548e4b;hb=a331b5e6d4724365bad9edeb9420c7e26e7f50da;hpb=909f413d3c572baadf9b13e36e1e90beba42af86 diff --git a/man/journalctl.xml b/man/journalctl.xml index fa29c4103..0e779b952 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -64,11 +64,11 @@ journal as written by systemd-journald.service8. - If called without parameter it will show the full + If called without parameters, it will show the full contents of the journal, starting with the oldest entry collected. - If one or more match arguments are passed the + If one or more match arguments are passed, the output is filtered accordingly. A match is in the format FIELD=VALUE, e.g. _SYSTEMD_UNIT=httpd.service, @@ -76,7 +76,7 @@ entry. See systemd.journal-fields7 for a list of well-known fields. If multiple matches - are specified matching different fields the log + are specified matching different fields, the log entries are filtered by both, i.e. the resulting output will show only entries matching all the specified matches of this kind. If two matches apply to the same @@ -85,28 +85,42 @@ entries matching any of the specified matches for the same field. Finally, if the character + appears as separate word on the - command line all matches before and after are combined + command line, all matches before and after are combined in a disjunction (i.e. logical OR). As shortcuts for a few types of field/value - matches file paths may be specified. If a file path + matches, file paths may be specified. If a file path refers to an executable file, this is equivalent to an _EXE= match for the canonicalized - binary path. Similar, if a path refers to a device + binary path. Similarly, if a path refers to a device node, this is equivalent to a _KERNEL_DEVICE= match for the device. Output is interleaved from all accessible journal files, whether they are rotated or currently - being written, and regardless whether they belong to the + being written, and regardless of whether they belong to the system itself or are accessible user journals. All users are granted access to their private - per-user journals. However, by default only root and + per-user journals. However, by default, only root and users who are members of the adm group get access to the system journal and the journals of other users. + + The output is paged through + less by default, and long lines are + "truncated" to screen width. The hidden part can be + viewed by using the left-arrow and right-arrow + keys. Paging can be disabled, see + and section Environment + below. + + When outputing to a tty, lines are colored + according to priority: lines of level ERROR and higher + are colored red, lines of level NOTICE and higher are + highlighted, and other lines are displayed normally. + @@ -173,7 +187,7 @@ the end of the journal inside the implied pager tool. This implies to guarantee - that the pager won't buffer logs of + that the pager will not buffer logs of unbounded size. This may be overridden with an explicit with some other numeric value on the @@ -230,7 +244,7 @@ cat. short is the default and generates an output that is mostly identical to the - formatting of classic syslog log + formatting of classic syslog files, showing one line per journal entry. short-monotonic is very similar but shows monotonic @@ -285,7 +299,7 @@ manuals. Note that help texts are not available for all messages, but only for selected ones. For more - information on the message catalog + information on the message catalog, please refer to the Message Catalog Developer @@ -313,23 +327,51 @@ - - - - Show data only from - current boot. This will add a match - for _BOOT_ID= for - the current boot ID of the - kernel. + + + + Show messages from the specified + boot ID or from + current boot if no ID + is given. This will add a match for + _BOOT_ID=. + + The argument is a 128 bit ID given in + short or UUID form and optionally followed by + :n which identifies the nth + boot relative to the boot ID given to the left + of :. Supplying a negative + value for n will look for a past boot and a + positive value for a future boot. The boot IDs + are searched for in chronological order. If no + number is provided after :, + -1 is assumed. A value of 0 + is valid and equivalent to omitting + :0. + + Alternatively, the argument may constist + only of :n. In this case, a + positive value will look up the nth boot + starting from the beginning of the jouranl, a + negative value will look up a previous boot + relative to the current boot. :0 + will look for the current boot ID. Thus, + :1 is the first boot found in + the journal, :2 the second + and so on; while :-1 is the + previous boot, :-2 the boot + before that and so on. Omitting a value after + : will look for the previous + boot. - Show kernel messages from - current boot. This implies - and adds the match _TRANSPORT=kernel. + Show only kernel messages. This + implies and adds the match + _TRANSPORT=kernel. @@ -386,10 +428,10 @@ notice (5), info (6), debug (7). If a - single log level is specified all + single log level is specified, all messages with this log level or a lower (hence more important) log level - are shown. If a range is specified all + are shown. If a range is specified, all messages within the range are shown, including both the start and the end value of the range. This will add @@ -468,7 +510,7 @@ Takes a directory path - as argument. If specified journalctl + as argument. If specified, journalctl will operate on the specified journal directory DIR instead @@ -480,7 +522,7 @@ Takes a file glob as - argument. If specified journalctl will + argument. If specified, journalctl will operate on the specified journal files matching GLOB instead of the default runtime and @@ -493,7 +535,7 @@ Takes a directory path - as argument. If specified journalctl + as argument. If specified, journalctl will operate on catalog file hierarchy underneath the specified directory instead of the root directory @@ -507,13 +549,13 @@ Instead of showing - journal contents generate a new 128 + journal contents, generate a new 128 bit ID suitable for identifying messages. This is intended for usage by developers who need a new identifier for a new message they introduce and want to make - recognizable. Will print the new ID in + recognizable. This will print the new ID in three different formats which can be copied into source code or similar. @@ -523,7 +565,7 @@ Instead of showing - journal contents show internal header + journal contents, show internal header information of the journal fields accessed. @@ -587,7 +629,7 @@ Instead of showing - journal contents generate a new key + journal contents, generate a new key pair for Forward Secure Sealing (FSS). This will generate a sealing key and a verification key. The @@ -600,11 +642,19 @@ for details. + + + + When --setup-keys is passed and + Forward Secure Sealing has already been set up, + recreate FSS keys. + + Specifies the change - interval for the sealing key, when + interval for the sealing key when generating an FSS key pair with . Shorter intervals increase CPU consumption but @@ -620,9 +670,9 @@ Check the journal file for internal consistency. If the file has been generated with FSS - enabled, and the FSS verification key + enabled and the FSS verification key has been specified with - + , authenticity of the journal file is verified. @@ -642,7 +692,7 @@ Exit status - On success 0 is returned, a non-zero failure + On success, 0 is returned, a non-zero failure code otherwise. @@ -665,24 +715,24 @@ Examples - Without arguments all collected logs are shown + Without arguments, all collected logs are shown unfiltered: journalctl - With one match specified all entries with a field matching the expression are shown: + With one match specified, all entries with a field matching the expression are shown: journalctl _SYSTEMD_UNIT=avahi-daemon.service - If two different fields are matched only entries matching both expressions at the same time are shown: + If two different fields are matched, only entries matching both expressions at the same time are shown: journalctl _SYSTEMD_UNIT=avahi-daemon.service _PID=28097 - If two matches refer to the same field all entries matching either expression are shown: + If two matches refer to the same field, all entries matching either expression are shown: journalctl _SYSTEMD_UNIT=avahi-daemon.service _SYSTEMD_UNIT=dbus.service - If the separator + is used + If the separator + is used, two expressions may be combined in a logical OR. The following will show all messages from the Avahi service process with the PID 28097 plus all messages @@ -699,6 +749,10 @@ journalctl /dev/sda + Show all kernel logs from last boot: + + journalctl -k -b : +