Update some manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng-clear.1.txt
CommitLineData
73b818e7 1lttng-clear(1)
484b2a0c
PP
2==============
3:revdate: 8 April 2021
73b818e7
JR
4
5NAME
6----
7lttng-clear - Clear a tracing session
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
484b2a0c 22The `clear` command clears:
73b818e7 23
484b2a0c
PP
24Without any option::
25 The current tracing session.
26+
27See man:lttng-create(1) and man:lttng-set-session(1) to learn more about
28the current tracing session.
73b818e7 29
484b2a0c
PP
30With the 'SESSION' argument::
31 The existing tracing session named 'SESSION'.
32
33With the option:--all option::
34 *All* the tracing sessions of your Unix user, as listed in the
35 output of `lttng list` (see man:lttng-list(1)).
73b818e7 36
dab6a2a3 37If a tracing session is configured in snapshot mode (see the
484b2a0c
PP
38nloption:--snapshot option of the man:lttng-create(1) command), the
39`clear` command only clears the tracing buffers.
73b818e7 40
dab6a2a3 41For a given tracing session, if at least one rotation occurred (see
484b2a0c
PP
42man:lttng-rotate(1)), the `clear` command only clears its tracing
43buffers and its current trace chunk, :not: its archived trace chunks.
73b818e7 44
dab6a2a3
PP
45NOTE: The nloption:--disallow-clear option and the
46`LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of
47man:lttng-relayd(8) can disable remote clearing operations. If LTTng
484b2a0c
PP
48sends tracing data over the network for the selected tracing session(s)
49to an LTTng relay daemon configured as such, the `clear` command fails.
73b818e7 50
73b818e7
JR
51
52include::common-cmd-options-head.txt[]
53
54
484b2a0c
PP
55Recording target
56~~~~~~~~~~~~~~~~
73b818e7 57option:-a, option:--all::
484b2a0c
PP
58 Clear all the tracing sessions of your Unix user, as listed in the
59 output of man:lttng-list(1), instead of the current tracing session
60 or the tracing session named 'SESSION'.
dab6a2a3 61
73b818e7
JR
62
63include::common-cmd-help-options.txt[]
64
65
66include::common-cmd-footer.txt[]
67
68
69SEE ALSO
70--------
484b2a0c 71man:lttng(1),
dab6a2a3 72man:lttng-create(1),
dab6a2a3 73man:lttng-relayd(8),
484b2a0c
PP
74man:lttng-rotate(1),
75man:lttng-set-session(1)
This page took 0.036982 seconds and 5 git commands to generate.