File: api-system.xml

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (143 lines) | stat: -rw-r--r-- 5,624 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
	"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
]>
<reference id="api-system">
  <title>API: system</title>

  <partintro>
    <para>This package contains general components for basic control of a system.</para>
  </partintro>

  <refentry id="api-logs-html">
    <refmeta>
      <refentrytitle>logs.html</refentrytitle>
    </refmeta>

    <refnamediv>
      <refname>logs.html</refname>
      <refpurpose>System log component</refpurpose>
    </refnamediv>

    <refsection id="api-logs-html-description">
      <title>Description</title>
<programlisting>
&lt;iframe src="http://127.0.0.1:9090/cockpit+app/@localhost/system/logs.html"
    width="600" height="400"&gt;&lt;/iframe&gt;
</programlisting>

      <para>This is a Cockpit component that brings up system log viewer, with filtering
        capabilities. On systemd based systems this displays the entries from journal.</para>

      <variablelist>
        <varlistentry>
          <term>Component URL</term>
          <listitem><para><code>/cockpit+app/@localhost/system/logs.html</code></para></listitem>
        </varlistentry>
        <varlistentry>
          <term>Filter by priority</term>
          <listitem>
            <para><code>#?prio=notice</code></para>
            <para>Filters the log to show entries below the specific priority, inclusive. These
              <ulink url="https://en.wikipedia.org/wiki/Syslog#Severity_levels">priorities are syslog level keywords</ulink>.
              Specifying <code>*</code> as a priority will show all available entries. The default
              priority is <code>err</code>.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Filter by service</term>
          <listitem>
            <para><code>#?service=sshd.service</code></para>
            <para>Filters the log to show entries related to the specific service. The format of
              the service is specific to the logging implementation. For journald these are systemd
              service unit names.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Filter by tag</term>
          <listitem>
            <para><code>#?tag=kernel</code></para>
            <para>Filters the log to show entries related to the specific syslog identifier.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Filter by message</term>
          <listitem>
            <para><code>#?grep=</code></para>
            <para>Filters the log to show entries where the <code>MESSAGE=</code> field matches the specified regular expression.
              PERL-compatible regular expressions are used. If the pattern is all lowercase, matching is case insensitive.
              Otherwise, matching is case sensitive.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Filter by any field</term>
          <listitem>
            <para><code>#?FIELD=VALUE</code></para>
            <para>A field is referring to the components of a structured journal entry. The match must be exact.
              Value can be comma separated list in which case they are automatically matched as alternatives.</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Start at point</term>
          <listitem>
            <para><code>#?start=boot</code></para>
            <para>Filters the log to show entries after the specific point in time. Valid values
              are <code>boot</code> (since last boot), <code>last-24h</code> (last 24 hours),
              <code>last-week</code> (last seven days) and <code>previous-boot</code> (previous boot).</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Follow the journal</term>
          <listitem>
            <para><code>#?follow=true</code></para>
            <para>Keep listening on new entries. Valid values are <code>true</code> (follow) and <code>false</code> (do not follow).</para>
          </listitem>
        </varlistentry>
        <varlistentry>
          <term>Show log entry</term>
          <listitem>
            <para><code>#/6e272d82993c4e0d...</code></para>
            <para>To show a specific log entry, put the log entry cursor in a path after
              the hash above. Note that cursors are logging system specific, and journal
              cursors are subject to change.</para>
          </listitem>
        </varlistentry>
      </variablelist>

    </refsection>
  </refentry>

  <refentry id="api-terminal-html">
    <refmeta>
      <refentrytitle>terminal.html</refentrytitle>
    </refmeta>

    <refnamediv>
      <refname>terminal.html</refname>
      <refpurpose>Server terminal component</refpurpose>
    </refnamediv>

    <refsection id="api-terminal-html-description">
      <title>Description</title>
<programlisting>
&lt;iframe src="http://127.0.0.1:9090/cockpit+app/@localhost/system/terminal.html"
    width="600" height="400"&gt;&lt;/iframe&gt;
</programlisting>

      <para>This is a Cockpit component that brings up a web-based terminal for
        the logged in user.</para>

      <variablelist>
        <varlistentry>
          <term>Component URL</term>
          <listitem><para><code>/cockpit+app/@localhost/system/terminal.html</code></para></listitem>
        </varlistentry>
      </variablelist>

    </refsection>
  </refentry>


</reference>