X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fjournalctl.xml;h=0703bf9fb613f45c58370174b1beab5f4c104aca;hp=23bb96051dc98bd852a85d24a79ef80f8f22de99;hb=3c6d3052d3597100e9d531df03cb15e9988dc94d;hpb=9a7adc9a0ed53d6e422321e9196eb83d18afcba5 diff --git a/man/journalctl.xml b/man/journalctl.xml index 23bb96051..0703bf9fb 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -21,7 +21,8 @@ along with systemd; If not, see . --> - + journalctl @@ -83,10 +84,11 @@ field, then they are automatically matched as alternatives, i.e. the resulting output will show entries matching any of the specified matches for the - same field. Finally, if the character - + appears as a separate word on the - command line, all matches before and after are combined - in a disjunction (i.e. logical OR). + same field. Finally, the character + + may appears as a separate word + between other terms on the command line. This causes + all matches before and after to be 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 @@ -97,11 +99,21 @@ _KERNEL_DEVICE= match for the device. + Additional constraints may be added using options + , , + etc, to further limit what entries will be shown + (logical AND). + Output is interleaved from all accessible journal files, whether they are rotated or currently being written, and regardless of whether they belong to the system itself or are accessible user journals. + The set of journal files which will be used + can be modified using the , + , , + and options, see below. + All users are granted access to their private per-user journals. However, by default, only root and users who are members of the systemd-journal @@ -116,10 +128,10 @@ option and the "Environment" section below. - When outputing to a tty, lines are colored + When outputting 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. + highlighted; other lines are displayed normally. @@ -129,28 +141,6 @@ The following options are understood: - - - - - Prints a short help - text and exits. - - - - - - Prints a short version - string and exits. - - - - - - Do not pipe output into a - pager. - - @@ -199,10 +189,10 @@ that the pager will not buffer logs of unbounded size. This may be overridden with an explicit - with some other numeric value on the - command line. Note that this option is - only supported for the - less1 + with some other numeric value while + will disable this cap. + Note that this option is only supported for the + less1 pager. @@ -214,9 +204,10 @@ journal events and limit the number of events shown. If is used, - this option is implied. The argument, - a positive integer, is optional, and - defaults to 10. + this option is implied. The argument is + a positive integer or all + to disable line limiting. The default value is + 10 if no argument is given. @@ -232,7 +223,7 @@ - Reverse output so the newest + Reverse output so that the newest entries are displayed first. @@ -379,7 +370,7 @@ terse output, only showing the actual message of each journal - entry with no meta data, + entry with no metadata, not even a timestamp. @@ -388,6 +379,13 @@ + + + + Express time in Coordinated Universal + Time (UTC). + + @@ -507,19 +505,44 @@ + + + + + Show messages for the + specified syslog identifier + SYSLOG_IDENTIFIER, or + for any of the messages with a SYSLOG_IDENTIFIER + matched by PATTERN. + + This parameter can be specified + multiple times. + + - + Show messages for the - specified systemd unit. This will add - a match for messages from the unit - (_SYSTEMD_UNIT=) - and additional matches for messages - from systemd and messages about - coredumps for the specified unit. - This parameter can be specified multiple times. - + specified systemd unit + UNIT (such + as a service unit), or for any of the + units matched by + PATTERN. + If a pattern is specified, a list of + unit names found in the journal is + compared with the specified pattern + and all that match are used. For each + unit name, a match is added for + messages from the unit + (_SYSTEMD_UNIT=UNIT), + along with additional matches for + messages from systemd and messages + about coredumps for the specified + unit. + + This parameter can be specified + multiple times. @@ -551,7 +574,7 @@ the form FROM..TO. The log levels are the usual syslog log levels as documented in - syslog3, + syslog3, i.e. emerg (0), alert (1), crit (2), @@ -691,7 +714,7 @@ matching GLOB instead of the default runtime and system journal paths. May be specified - multiple times, in which case, files will + multiple times, in which case files will be suitably interleaved. @@ -738,8 +761,37 @@ Shows the current disk - usage of all - journal files. + usage of all journal files. This shows + the sum of the disk usage of all + archived and active journal + files. + + + + + + + Removes archived + journal files until the disk space + they use falls below the specified + size (specified with the usual K, M, + G, T suffixes), or all journal files + contain no data older than the + specified timespan (specified with the + usual s, min, h, days, months, weeks, + years suffixes). Note that running + has + only indirect effect on the output + shown by + as the latter includes active journal + files, while the former only operates + on archived journal + files. + and + may be combined in a single invocation + to enforce both a size and time limit + on the archived journal + files. @@ -800,10 +852,14 @@ sealing key is stored in the journal data directory and shall remain on the host. The verification key should be - stored externally. Also see the + stored externally. Refer to the option in journald.conf5 - for details. + for information on Forward Secure + Sealing and for a link to a refereed + scholarly paper detailing the + cryptographic theory it is based on. + @@ -851,6 +907,23 @@ operation. + + + + Asks the Journal + daemon to flush any log data stored in + /run/log/journal + into + /var/log/journal, + if persistent storage is enabled. This + call does not return until the + operation is + complete. + + + + + @@ -861,21 +934,7 @@ failure code is returned. - - Environment - - - - $SYSTEMD_PAGER - Pager to use when - is not given; - overrides $PAGER. Setting - this to an empty string or the value - cat is equivalent to passing - . - - - + Examples @@ -918,6 +977,10 @@ journalctl -k -b -1 + Show a live log display from a system service apache.service: + + journalctl -f -u apache + @@ -926,6 +989,7 @@ systemd1, systemd-journald.service8, systemctl1, + coredumpctl1, systemd.journal-fields7, journald.conf5