lttng-rotate.1.txt: lttng-relayd(8) also has --output option
[lttng-tools.git] / doc / man / lttng-enable-rotation.1.txt
... / ...
CommitLineData
1lttng-enable-rotation(1)
2========================
3
4
5NAME
6----
7lttng-enable-rotation - Set a tracing session's rotation schedule
8
9
10SYNOPSIS
11--------
12[verse]
13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *enable-rotation* (option:--timer='PERIOD' | option:--size='SIZE')
14 [option:--session='SESSION']
15
16
17DESCRIPTION
18-----------
19The `lttng enable-rotation` command sets a rotation schedule for the
20current tracing session, or for the tracing session named 'SESSION' if
21provided. See man:lttng-rotate(1) for more information about the
22concepts of a tracing session _rotation_ and a _trace chunk_.
23
24With the option:--timer option, the rotation schedule is set so that an
25automatic rotation occurs at least every 'PERIOD' (microseconds without
26a unit suffix).
27
28With the option:--size option, the rotation schedule is set
29so that an automatic rotation occurs every time the total size of the
30flushed part of the current trace chunk is at least 'SIZE' (bytes
31without a unit suffix).
32
33With both the option:--timer and option:--size options, LTTng checks the
34schedule condition periodically using the monitor timers of the tracing
35session's channels. This means that, with the option:--timer option, the
36automatic rotation can occur when the elapsed time since the last
37automatic rotation is greater than 'PERIOD', and with the option:--size
38option, the automatic rotation can occur when the size of the flushed
39part of the current trace chunk is greater than 'SIZE'. See the
40nloption:--monitor-timer option in man:lttng-enable-channel(1) for more
41information about the monitor timer.
42
43The naming convention of a trace chunk archive which an automatic
44rotation creates is the same as with the immediate rotation command,
45man:lttng-rotate(1).
46
47You can unset a rotation schedule with the man:lttng-disable-rotation(1)
48command.
49
50See <<limitations,LIMITATIONS>> for important limitations regarding
51this command.
52
53
54include::common-cmd-options-head.txt[]
55
56
57Rotation schedule condition
58~~~~~~~~~~~~~~~~~~~~~~~~~~~
59One of:
60
61option:--size='SIZE'::
62 Set a rotation schedule so that an automatic rotation occurs every
63 time the total size of the flushed part of the current trace chunk
64 is at least 'SIZE' bytes. The `k` (kiB), `M` (MiB), and `G` (GiB)
65 suffixes are supported.
66
67option:--timer='PERIOD'::
68 Set a rotation schedule so that an automatic rotation occurs at
69 least every 'PERIOD' microseconds. The `ms` (milliseconds), `s`
70 (seconds), `m` (minutes), and `h` (hours) suffixes are supported.
71
72
73Target
74~~~~~~
75option:-s 'SESSION', option:--session='SESSION'::
76 Set a rotation schedule for the tracing session named 'SESSION'
77 instead of the current tracing session.
78
79
80include::common-cmd-help-options.txt[]
81
82
83[[limitations]]
84LIMITATIONS
85-----------
86The `lttng enable-rotation` command only works when:
87
88* The tracing session is created in normal mode or in network streaming
89 mode (see man:lttng-create(1)).
90
91* No channel was created with a configured trace file count or size
92 limit (see the nloption:--tracefile-size and
93 nloption:--tracefile-count options in man:lttng-enable-channel(1)).
94
95For a given tracing session, LTTng only performs an automatic rotation
96when no other rotation is currently happening.
97
98
99include::common-cmd-footer.txt[]
100
101
102SEE ALSO
103--------
104man:lttng-rotate(1),
105man:lttng-disable-rotation(1),
106man:lttng(1)
This page took 0.022785 seconds and 4 git commands to generate.