Clean-up: relayd trace-chunk: change space to tabs
[lttng-tools.git] / doc / man / lttng-clear.1.txt
... / ...
CommitLineData
1lttng-clear(1)
2===============
3:revdate: 2 April 2020
4
5NAME
6----
7lttng-clear - Clear a tracing session
8
9
10SYNOPSIS
11--------
12[verse]
13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* ['SESSION' | option:--all]
14
15
16DESCRIPTION
17-----------
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.
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
29With the option:--all option, *all* the tracing sessions, as listed in
30the output of `lttng list` (see man:lttng-list(1)), are cleared.
31
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.
35
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.
39
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.
46
47
48include::common-cmd-options-head.txt[]
49
50
51Target
52~~~~~~
53option:-a, option:--all::
54 Clear all the tracing sessions instead of the current tracing
55 session or the tracing session named 'SESSION'.
56
57
58include::common-cmd-help-options.txt[]
59
60
61include::common-cmd-footer.txt[]
62
63
64SEE ALSO
65--------
66man:lttng-create(1),
67man:lttng-rotate(1),
68man:lttng-set-session(1),
69man:lttng-relayd(8),
70man:lttng(1)
This page took 0.023268 seconds and 5 git commands to generate.