2
.\" Title: systemd-journalctl
3
.\" Author: Lennart Poettering <lennart@poettering.net>
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6
.\" Manual: systemd-journalctl
10
.TH "SYSTEMD\-JOURNALCTL" "1" "03/16/2012" "systemd" "systemd-journalctl"
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
systemd-journalctl \- Query the systemd journal
33
.HP \w'\fBsystemd\-journalctl\ \fR\fB[OPTIONS...]\fR\fB\ \fR\fB[MATCH]\fR\ 'u
34
\fBsystemd\-journalctl \fR\fB[OPTIONS...]\fR\fB \fR\fB[MATCH]\fR
37
\fBsystemd\-journalctl\fR
38
may be used to query the contents of the
42
If called without parameter will show the full contents of the journal, starting with the oldest entry collected\&.
44
If a match argument is passed the output is filtered accordingly\&. A match is in the format
46
_SYSTEMD_UNIT=httpd\&.service\&.
48
Output is interleaved from all accessible journal files, whether they are rotated or currently being written, and regardless whether they belong to the system itself or are accessible user journals\&.
50
All users are granted access to their private per\-user journals\&. However, by default only root and users who are members of the
52
group get access to the system journal and the journals of other users\&.
55
The following options are understood:
57
\fB\-\-help\fR, \fB\-h\fR
59
Prints a short help text and exits\&.
64
Prints a short version string and exits\&.
69
Do not pipe output into a pager\&.
72
\fB\-\-all\fR, \fB\-a\fR
74
Show all fields in full, even if they include unprintable characters or are very long\&.
77
\fB\-\-follow\fR, \fB\-f\fR
79
Show only most recent journal entries, and continously print new entries as they are appended to the journal\&.
82
\fB\-\-lines=\fR, \fB\-n\fR
84
Controls the number of journal lines to show, counting from the most recent ones\&. Takes a positive integer argument\&. In follow mode defaults to 10, otherwise is unset thus not limiting how many lines are shown\&.
89
Show all stored output lines, even in follow mode\&. Undoes the effect of
93
\fB\-\-output=\fR, \fB\-o\fR
95
Controls the formatting of the journal entries that are shown\&. Takes one of
103
is the default and generates an output that is mostly identical to the formatting of classic syslog log files, showing one line per journal entry\&.
105
is very similar but shows monotonic timestamps instead of wallclock timestamps\&.
107
shows the full structered entry items with all fiels\&.
109
serializes the journal into a binary (but mostly text\-based) stream suitable for backups and network transfer\&.
111
formats entries as JSON data structures\&.
113
generates a very terse output only showing the actual message of each journal entry with no meta data, not even a timestamp\&.
116
\fB\-\-quiet\fR, \fB\-q\fR
118
Suppresses any warning message regarding inaccessable system journals when run as normal user\&.
123
Instead of showing 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 three different formats which can be copied into source code or similar\&.
127
On success 0 is returned, a non\-zero failure code otherwise\&.
134
is not given; overrides
135
\fI$PAGER\fR\&. Setting this to an empty string or the value
137
is equivalent to passing
138
\fB\-\-no\-pager\fR\&.
145
\fBsystemd-journald.conf\fR(5)
148
\fBLennart Poettering\fR <\&lennart@poettering\&.net\&>