Update the remaining manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng-clear.1.txt
CommitLineData
73b818e7 1lttng-clear(1)
484b2a0c 2==============
26f0c779 3:revdate: 3 May 2021
73b818e7
JR
4
5NAME
6----
26f0c779 7lttng-clear - Clear an LTTng tracing session
73b818e7
JR
8
9
10SYNOPSIS
11--------
12[verse]
dab6a2a3 13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* ['SESSION' | option:--all]
73b818e7
JR
14
15
16DESCRIPTION
17-----------
dab6a2a3 18The `lttng clear` command clears one or more tracing sessions, that is,
484b2a0c
PP
19it deletes the contents of their tracing buffers and of all their local
20and streamed trace data.
73b818e7 21
26f0c779
PP
22See man:lttng-concepts(7) to learn more about tracing sessions.
23
484b2a0c 24The `clear` command clears:
73b818e7 25
484b2a0c
PP
26Without any option::
27 The current tracing session.
28+
26f0c779
PP
29See man:lttng-concepts(7) to learn more about the current tracing
30session.
73b818e7 31
484b2a0c 32With the 'SESSION' argument::
26f0c779 33 The tracing session named 'SESSION'.
484b2a0c
PP
34
35With the option:--all option::
26f0c779
PP
36 *All* the tracing sessions of the connected session daemon for your
37 Unix user, or for all users if your Unix user is `root`, as listed
38 in the output of `lttng list` (see man:lttng-list(1)).
39+
40See the ``Session daemon connection'' section of man:lttng(1) to learn
41how a user application connects to a session daemon.
73b818e7 42
dab6a2a3 43If a tracing session is configured in snapshot mode (see the
484b2a0c
PP
44nloption:--snapshot option of the man:lttng-create(1) command), the
45`clear` command only clears the tracing buffers.
73b818e7 46
dab6a2a3 47For a given tracing session, if at least one rotation occurred (see
26f0c779 48man:lttng-concepts(7)), the `clear` command only clears its tracing
484b2a0c 49buffers and its current trace chunk, :not: its archived trace chunks.
73b818e7 50
dab6a2a3
PP
51NOTE: The nloption:--disallow-clear option and the
52`LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of
53man:lttng-relayd(8) can disable remote clearing operations. If LTTng
484b2a0c
PP
54sends tracing data over the network for the selected tracing session(s)
55to an LTTng relay daemon configured as such, the `clear` command fails.
73b818e7 56
73b818e7
JR
57
58include::common-cmd-options-head.txt[]
59
60
484b2a0c
PP
61Recording target
62~~~~~~~~~~~~~~~~
73b818e7 63option:-a, option:--all::
26f0c779
PP
64 Clear all the tracing sessions of your Unix user, or of all users if
65 your Unix user is `root`, as listed in the output of
66 man:lttng-list(1), instead of the current tracing session or the
67 tracing session named 'SESSION'.
dab6a2a3 68
73b818e7
JR
69
70include::common-cmd-help-options.txt[]
71
72
73include::common-cmd-footer.txt[]
74
75
76SEE ALSO
77--------
484b2a0c 78man:lttng(1),
26f0c779 79man:lttng-concepts(7),
dab6a2a3 80man:lttng-create(1),
26f0c779 81man:lttng-relayd(8)
This page took 0.028449 seconds and 4 git commands to generate.