1tlog-rec-session.conf(5) File Formats Manual tlog-rec-session.conf(5)
2
3
4
6 tlog-rec-session.conf - tlog-rec-session configuration file
7
8
10 tlog-rec-session.conf is a JSON-format configuration file for tlog-rec-
11 session program. Contrary to the strict JSON specification, both C and
12 C++ style comments are allowed in the file.
13
14 The file must contain a single JSON object with the objects and fields
15 described below. Almost all of them are optional and assume a default
16 value. However, those that do require a value can still be omitted and
17 specified to tlog-rec-session in other ways: through environment vari‐
18 ables or command line.
19
20
22 Root object
23 shell (string)
24 The path to the shell executable which should be spawned.
25
26 Default: "/bin/bash"
27
28 notice (string)
29 A message which will be printed before starting recording and
30 the user shell. Can be used to warn the user that the session is
31 recorded.
32
33 Default: "\nATTENTION! Your session is being recorded!\n\n"
34
35 latency (integer)
36 The number of seconds to cache captured data for before logging.
37 The encoded data which does not reach payload size stays in mem‐
38 ory and is not logged until this number of seconds elapses.
39
40 Minimum: 1
41 Default: 10
42
43 payload (integer)
44 The maximum encoded data (payload) size per message, bytes. As
45 soon as payload exceeds this number of bytes, it is formatted
46 into a message and logged.
47
48 Minimum: 32
49 Default: 2048
50
51 log (object)
52 Logged data set object, see below.
53
54 limit (object)
55 Logging limit object, see below.
56
57 file (object)
58 File writer object, see below.
59
60 syslog (object)
61 Syslog writer object, see below.
62
63 journal (object)
64 Journal writer object, see below.
65
66 writer (string)
67 The type of "log writer" to use for logging. The writer needs to
68 be configured using its dedicated parameters.
69
70 One of: "journal", "syslog", "file"
71 Default: "journal"
72
73 log - Logged data set object
74 input (boolean)
75 If true, user input is logged.
76
77 Default: false
78
79 output (boolean)
80 If true, terminal output is logged.
81
82 Default: true
83
84 window (boolean)
85 If true, terminal window size changes are logged.
86
87 Default: true
88
89 limit - Logging limit object
90 rate (integer)
91 The maximum rate messages could be logged at, bytes/sec.
92
93 Minimum: 0
94 Default: 16384
95
96 burst (integer)
97 The number of bytes by which logged messages are allowed to ex‐
98 ceed the rate limit momentarily, i.e. "burstiness".
99
100 Minimum: 0
101 Default: 32768
102
103 action (string)
104 The logging limit action. If set to "pass" no logging limits
105 will be applied. If set to "delay", logging will be throttled.
106 If set to "drop", messages exceeding limits will be dropped.
107
108 One of: "pass", "delay", "drop"
109 Default: "pass"
110
111 file - File writer object
112 path (string)
113 The "file" writer log file path.
114
115 No default.
116
117 syslog - Syslog writer object
118 facility (string)
119 The syslog facility "syslog" writer should use for messages.
120
121 One of: "auth", "authpriv", "cron", "daemon", "ftp", "kern",
122 "local0", "local1", "local2", "local3", "local4", "local5", "lo‐
123 cal6", "local7", "lpr", "mail", "news", "syslog", "user", "uucp"
124 Default: "authpriv"
125
126 priority (string)
127 The syslog priority "syslog" writer should use for messages.
128
129 One of: "emerg", "alert", "crit", "err", "warning", "notice",
130 "info", "debug"
131 Default: "info"
132
133 journal - Journal writer object
134 priority (string)
135 The syslog-style priority "journal" writer should use for mes‐
136 sages.
137
138 One of: "emerg", "alert", "crit", "err", "warning", "notice",
139 "info", "debug"
140 Default: "info"
141
142 augment (boolean)
143 If true, the "journal" writer copies the following JSON fields
144 to Journal fields: user -> TLOG_USER, session -> TLOG_SESSION,
145 rec -> TLOG_REC, and id -> TLOG_ID.
146
147 Default: true
148
149
151 A configuration specifying only a shell:
152
153 {
154 "shell": "/usr/bin/zsh"
155 }
156
157
158 A configuration enabling logging user input:
159
160 {
161 "log": {
162 "input": true
163 }
164 }
165
166
167 A configuration specifying logging to a file:
168
169 {
170 "writer": "file",
171 "file" : {
172 "path": "/var/log/tlog-rec-session.log"
173 }
174 }
175
176
178 tlog-rec-session(8), http://json.org/
179
180
182 Nikolai Kondrashov <spbnick@gmail.com>
183
184
185
186Tlog February 2016 tlog-rec-session.conf(5)