doc/man: use double quotes when referring to internal section
[lttng-tools.git] / doc / man / lttng-rotate.1.txt
... / ...
CommitLineData
1lttng-rotate(1)
2===============
3:revdate: 17 May 2021
4
5
6NAME
7----
8lttng-rotate - Archive the current trace chunk of an LTTng tracing session
9
10
11SYNOPSIS
12--------
13[verse]
14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *rotate* [option:--no-wait] ['SESSION']
15
16
17DESCRIPTION
18-----------
19The `lttng rotate` command archives to the file system
20the current trace chunk of:
21
22With the 'SESSION' argument::
23 The tracing session named 'SESSION'.
24
25Without the 'SESSION' argument::
26 The current tracing session (see man:lttng-concepts(7) to learn more
27 about the current tracing session).
28
29This action is called a _tracing session rotation_.
30
31See man:lttng-concepts(7) to learn more about the tracing session
32rotation and trace chunk concepts.
33
34You can use the `rotate` command:
35
36* Any time the tracing session is active.
37
38* A single time once the tracing session becomes inactive.
39
40See man:lttng-concepts(7) to learn more about the activity of a
41tracing session.
42
43By default, the `rotate` command ensures that LTTng finished performing
44the tracing session rotation before it prints the path of the archived
45trace chunk and exits. The printed path is absolute when the tracing
46session was created in normal mode and relative to the base output
47directory of the relay daemon (see the nloption:--output option of
48man:lttng-relayd(8)) when it was created in network streaming mode (see
49man:lttng-create(1)).
50
51Make the command exit immediately with the option:--no-wait option. In
52this case, there's no easy way to know when the current trace chunk
53becomes archived, and the command does :not: print the path of the
54archived trace chunk.
55
56Because LTTng flushes the current sub-buffers of the selected tracing
57session when it performs a tracing session rotation, archived trace
58chunks are never redundant, that is, they do not overlap over time like
59snapshots can (see man:lttng-snapshot(1)). Also, a rotation does :not:
60directly cause discarded event records or packets.
61
62A `rotate-session` trigger action can also rotate a tracing session (see
63man:lttng-add-trigger(1)).
64
65See the ``<<examples,EXAMPLES>>'' section below for usage examples.
66
67[IMPORTANT]
68====
69You may only use the `rotate` command when:
70
71* The selected tracing session was created in normal mode or in network
72 streaming mode (see man:lttng-create(1)).
73
74* No channel was created with a configured trace file count or size
75 limit (see the nloption:--tracefile-size and
76 nloption:--tracefile-count options of the man:lttng-enable-channel(1)
77 command).
78
79* LTTng is not currently performing an immediate rotation (this
80 command).
81====
82
83
84include::common-lttng-cmd-options-head.txt[]
85
86
87option:-n, option:--no-wait::
88 Do not ensure that the tracing session rotation operation is
89 completed before exiting.
90
91
92include::common-lttng-cmd-help-options.txt[]
93
94
95include::common-lttng-cmd-after-options.txt[]
96
97
98[[examples]]
99EXAMPLES
100--------
101.Rotate the current tracing session.
102====
103[role="term"]
104----
105$ lttng rotate
106----
107====
108
109.Rotate a specific tracing session.
110====
111[role="term"]
112----
113$ lttng rotate my-session
114----
115====
116
117.Rotate the current tracing session without waiting for completion.
118====
119See the option:--no-wait option.
120
121[role="term"]
122----
123$ lttng rotate --no-wait
124----
125====
126
127
128include::common-footer.txt[]
129
130
131SEE ALSO
132--------
133man:lttng(1),
134man:lttng-disable-rotation(1),
135man:lttng-enable-rotation(1),
136man:lttng-concepts(7)
This page took 0.022768 seconds and 4 git commands to generate.