Debian Codegraph @

doc/modules/guide/pages/api-logs-html.adoc

raw
1 = logs.html
2
3 System log component
4
5 [[api-logs-html-description]]
6 == Description
7 ....
8 <iframe src="http://127.0.0.1:9090/cockpit+app/@localhost/system/logs.html"
9 width="600" height="400"></iframe>
10 ....
11
12 This is a Cockpit component that brings up system log viewer, with
13 filtering capabilities. On systemd based systems this displays the
14 entries from journal.
15
16 Component URL::
17 `+/cockpit+app/@localhost/system/logs.html+`
18 Filter by priority::
19 `+#?prio=notice+` +
20 +
21 Filters the log to show entries below the specific priority,
22 inclusive. These
23 https://en.wikipedia.org/wiki/Syslog#Severity_levels[priorities are
24 syslog level keywords]. Specifying `+*+` as a priority will show all
25 available entries. The default priority is `+err+`.
26 Filter by service::
27 `+#?service=sshd.service+` +
28 +
29 Filters the log to show entries related to the specific service. The
30 format of the service is specific to the logging implementation. For
31 journald these are systemd service unit names.
32 Filter by tag::
33 `+#?tag=kernel+` +
34 +
35 Filters the log to show entries related to the specific syslog
36 identifier.
37 Filter by message::
38 `+#?grep=+` +
39 +
40 Filters the log to show entries where the `+MESSAGE=+` field matches
41 the specified regular expression. PERL-compatible regular expressions
42 are used. If the pattern is all lowercase, matching is case
43 insensitive. Otherwise, matching is case sensitive.
44 Filter by any field::
45 `+#?FIELD=VALUE+` +
46 +
47 A field is referring to the components of a structured journal entry.
48 The match must be exact. Value can be comma separated list in which
49 case they are automatically matched as alternatives.
50 Start at point::
51 `+#?start=boot+` +
52 +
53 Filters the log to show entries after the specific point in time.
54 Valid values are `+boot+` (since last boot), `+last-24h+` (last 24
55 hours), `+last-week+` (last seven days) and `+previous-boot+`
56 (previous boot).
57 Follow the journal::
58 `+#?follow=true+` +
59 +
60 Keep listening on new entries. Valid values are `+true+` (follow) and
61 `+false+` (do not follow).
62 Show log entry::
63 `+#/6e272d82993c4e0d...+` +
64 +
65 To show a specific log entry, put the log entry cursor in a path after
66 the hash above. Note that cursors are logging system specific, and
67 journal cursors are subject to change.