doc/man: update type/domain options for common event rule spec.
[lttng-tools.git] / doc / man / lttng-load.1.txt
CommitLineData
44f5039e
PP
1lttng-load(1)
2=============
d647f7d3 3:revdate: 17 May 2021
44f5039e
PP
4
5
6NAME
7----
8lttng-load - Load LTTng tracing session configurations
9
10
11SYNOPSIS
12--------
13[verse]
fe559816 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *load* [option:--force] [option:--input-path='PATH']
188419c4 15 [option:--override-url='URL'] [option:--all | 'SESSION' [option:--override-name='NAME']]
44f5039e
PP
16
17
18DESCRIPTION
19-----------
20The `lttng load` command loads the configurations of one or more
21tracing sessions from files.
22
188419c4
PP
23See man:lttng-concepts(7) to learn more about tracing sessions.
24
25Use the `load` command in conjunction with the man:lttng-save(1) command
26to save and restore the complete configurations of tracing sessions. A
27tracing session configuration includes the enabled channels and
28recording event rules, the context fields to be recorded, the tracing
484b2a0c 29activity, and more.
44f5039e 30
188419c4 31Once LTTng loads one or more tracing session configurations, they appear
44f5039e
PP
32exactly as they were saved from the user's point of view.
33
188419c4
PP
34LTTng searches the following directories, non-recursively, in this order
35for tracing session configuration files:
7a0f38c7
PP
36
37. `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to `$HOME`)
38. +{system_sessions_dir}+
39
188419c4
PP
40Override the input path with the option:--input-path='PATH' option. With
41this option, LTTng does :not: search the default directories above.
42'PATH' can be the path of one of:
43
44A directory::
45 With the 'SESSION' argument:::
46 LTTng searches for the tracing session configuration named
47 'SESSION' in all the files of the directory 'PATH' and loads it
48 if found.
44f5039e 49
188419c4
PP
50 Without the 'SESSION' argument:::
51 The option:--all option is implicit: LTTng loads all the tracing
52 session configurations found in all the files in the directory
53 'PATH'.
9014e3a8 54
188419c4
PP
55A file::
56 With the 'SESSION' argument:::
57 LTTng searches for the tracing session configuration named
58 'SESSION' in the file 'PATH' and loads it if found.
9014e3a8 59
188419c4
PP
60 Without the 'SESSION' argument:::
61 The option:--all option is implicit: LTTng loads all the tracing
62 session configurations found in the file 'PATH'.
9014e3a8 63
188419c4
PP
64Override the output URL of the loaded tracing session configurations
65with the option:--override-url option.
9014e3a8 66
188419c4
PP
67With the 'SESSION' argument, override the name of the loaded tracing
68session configuration with the option:--override-name option.
e1f481f6 69
188419c4
PP
70By default, the `load` command does :not: overwrite existing tracing
71sessions: the command fails. Allow the `load` command to overwrite
72existing tracing sessions with the option:--force option.
44f5039e 73
d647f7d3
PP
74See the <<examples,EXAMPLES>> section below for usage examples.
75
44f5039e 76
55e06994 77include::common-lttng-cmd-options-head.txt[]
44f5039e
PP
78
79
80option:-a, option:--all::
188419c4 81 Load all the tracing session configurations (default).
44f5039e
PP
82
83option:-f, option:--force::
84 Overwrite existing tracing sessions when loading.
85
59b19c3c 86option:-i 'PATH', option:--input-path='PATH'::
7a0f38c7
PP
87 Load tracing session configurations from 'PATH', either a directory
88 or a file, instead of loading them from the default search
89 directories.
44f5039e 90
54c28cda 91option:--override-name='NAME'::
62482ec6
PP
92 Override the name of the loaded tracing session configuration,
93 'SESSION', with 'NAME'.
62482ec6
PP
94
95option:--override-url='URL'::
188419c4 96 Override the output URL of the loaded tracing session configurations
62482ec6
PP
97 with 'URL'.
98+
99This is the equivalent of the nloption:--set-url option of
100man:lttng-create(1). The validity of the URL override depends on the
101type of tracing session configurations to load. This option applies to
102_all_ the loaded tracing session configurations.
103
44f5039e 104
55e06994 105include::common-lttng-cmd-help-options.txt[]
44f5039e
PP
106
107
55e06994
PP
108include::common-lttng-cmd-after-options.txt[]
109
110
d647f7d3
PP
111[[examples]]
112EXAMPLES
113--------
114.Load all the tracing session configurations from the default search directories.
115====
116[role="term"]
117----
118$ lttng load
119----
120====
121
122.Load all the tracing session configurations from a specific directory.
123====
124See the option:--input-path option.
125
126[role="term"]
127----
128$ lttng load --input-path=/path/to/sessions
129----
130====
131
132.Load a specific tracing session configuration from the default search directories.
133====
134[role="term"]
135----
136$ lttng load my-session
137----
138====
139
140.Allow LTTng to overwrite existing tracing sessions when loading.
141====
142See the option:--force option.
143
144[role="term"]
145----
146$ lttng load --force
147----
148====
149
150.Load a specific tracing session configuration from a specific file, overriding its name.
151====
152See the option:--input-path and option:--override-name options.
153
154[role="term"]
155----
156$ lttng load my-session --input-path=/path/to/sessions.lttng \
157 --override-name=new-test
158----
159====
160
161
55e06994 162include::common-footer.txt[]
44f5039e
PP
163
164
165SEE ALSO
166--------
188419c4 167man:lttng(1),
21b35b3a
PP
168man:lttng-save(1),
169man:lttng-concepts(7)
This page took 0.041155 seconds and 4 git commands to generate.