lttng-clear(1): normalize style and add details
[lttng-tools.git] / doc / man / lttng-clear.1.txt
CommitLineData
73b818e7
JR
1lttng-clear(1)
2===============
dab6a2a3 3:revdate: 2 April 2020
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
PP
18The `lttng clear` command clears one or more tracing sessions, that is,
19it deletes the contents of their tracing buffers and all their local and
20streamed trace data.
73b818e7
JR
21
22If no options are specified, the current tracing session is cleared
23(see man:lttng-create(1) for more information about the current
24tracing session).
25
26If 'SESSION' is specified, the existing tracing session named 'SESSION'
27is cleared.
28
dab6a2a3
PP
29With the option:--all option, *all* the tracing sessions, as listed in
30the output of `lttng list` (see man:lttng-list(1)), are cleared.
73b818e7 31
dab6a2a3
PP
32If a tracing session is configured in snapshot mode (see the
33man:lttng-create(1) command's nloption:--snapshot option), only the
34tracing buffers are cleared.
73b818e7 35
dab6a2a3
PP
36For a given tracing session, if at least one rotation occurred (see
37man:lttng-rotate(1)), only its tracing buffers and its current trace
38chunk are cleared; its archived trace chunks are :not: cleared.
73b818e7 39
dab6a2a3
PP
40NOTE: The nloption:--disallow-clear option and the
41`LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of
42man:lttng-relayd(8) can disable remote clearing operations. If LTTng
43sends tracing data over the network for 'SESSION' (or for any tracing
44session with the option:--all option) to a relay daemon configured as
45such, `lttng clear` fails.
73b818e7 46
73b818e7
JR
47
48include::common-cmd-options-head.txt[]
49
50
dab6a2a3
PP
51Target
52~~~~~~
73b818e7 53option:-a, option:--all::
dab6a2a3
PP
54 Clear all the tracing sessions instead of the current tracing
55 session or the tracing session named 'SESSION'.
56
73b818e7
JR
57
58include::common-cmd-help-options.txt[]
59
60
61include::common-cmd-footer.txt[]
62
63
64SEE ALSO
65--------
dab6a2a3 66man:lttng-create(1),
73b818e7
JR
67man:lttng-rotate(1),
68man:lttng-set-session(1),
dab6a2a3 69man:lttng-relayd(8),
73b818e7 70man:lttng(1)
This page took 0.027262 seconds and 5 git commands to generate.