1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
|
Events
======
List of all events that can be used in <Statistics.txt> and elsewhere. Note
that in v2.3 these are added on version basis, so not all events are available
in all v2.3 releases.
Contents
1. Events
1. Authentication Server (v2.3.6)
2. Authentication Client (v2.3.6)
3. Connection
4. HTTP
5. IMAP
6. DNS
7. SQL
Authentication Server (v2.3.6)
------------------------------
These events are generated by authentication in auth process(es).
*auth_request_finished*
* user: full username
* original_username: original username used
* translated_username: username after translations
* login_user: when doing login using master_user, this is the user we are
logging in as
* master_user: master username
* error: set when error happens
* successful: yes, when succeeded
* transport: insecure, trusted, TLS
* mechanism: name of used mechanism
* credentials_scheme: type of credential (SHA256-CRYPT, PLAIN, ...)
* policy_penalty: time of penalty added by policy server
* policy_result: ok, delayed, refused
*auth_passdb_request_started*
* passdb_name: name of passdb
* passdb: driver
*auth_passdb_request_finished*
* passdb_name: name of passdb
* passdb: driver
* user: full username
* master_user: master user name
* username: username without domain
* domain: domain if present
* result: authentication result
*auth_userdb_request_started*
* userdb_name: name of passdb
* userdb: driver
*auth_userdb_request_finished*
* userdb_name: name of passdb
* userdb: driver
* user: full username
* master_user: master user name
* username: username without domain
* domain: domain if present
* result: authentication result
*auth_policy_request_finished*
* mode: allow, report
* policy_response: number
Authentication Client (v2.3.6)
------------------------------
These events are generated by authentication clients (lib-auth).
*auth_client_request_started*
* id: event id
*auth_client_request_continue*
* id: event id
*auth_client_request_finished*
* id: event id
* error: reason
*auth_client_request_challenged*
* id: event id
*auth_client_userdb_lookup_started*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
*auth_client_userdb_lookup_finished*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
* error: error if occured
*auth_client_passdb_lookup_started*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
*auth_client_passdb_lookup_finished*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
* error: error if occured
*auth_client_userdb_list_started*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
*auth_client_userdb_list_finished*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
* error: error if occured
*auth_client_cache_flush_started*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
*auth_client_cache_flush_finished*
* service: name of service (smtp, imap, lmtp...)
* local_ip: local ip
* local_port: local port
* remote_ip: remote ip
* remote_port: remote port
* user: full username
* error: error if occured
Connection
----------
These events apply only for connections using the "connection API".
Unfortunately not all connections currently use this, so these events work for
some types of connections, but not for others.
*client_connection_connected*
* client_ip: source IP
* client_port: source port
* ip: target IP
* port: target port
*client_connection_disconnected*
* fields from *client_connection_connected*
* bytes_in: amount of data read
* bytes_out: amount of data written
* reason: disconnection reason
*server_connection_connected*
* client_ip: source IP
* client_port: source port
* ip: target IP
* port: target port
* bytes_in: amount of data read
* bytes_out: amount of data written
*server_connection_disconnected*
* fields from *server_connection_connected*
* bytes_in: amount of data read
* bytes_out: amount of data written
* reason: disconnection reason
HTTP
----
*http_request_finished*
* status_code: HTTP result status code
* attempts: Number of individual HTTP request attempts that were done (i.e.
number of retries after failures + 1)
* redirects: Number of redirects that were done while processing this request.
* bytes_in, bytes_out: Number of bytes received/sent for this request.
*http_request_redirected*
* Intermediate event sent while HTTP request is being redirected. The
*http_request_finished* is still being sent as well.
* Same fields as *http_request_finished*
*http_request_retried*
* Intermediate event sent while HTTP request is being retried. The
*http_request_finished* is still being sent as well.
* Same fields as *http_request_finished*
IMAP
----
*imap_command_finished*
NOTE: These are currently not sent for pre-login IMAP commands.
* tag: Command tag
* name: Command name
* args: Command's full parameters
* human_args: Command's parameters as more human-readable output
* tagged_reply_state: OK, NO, BAD
* tagged_reply: Full tagged reply, e.g. "OK SELECT finished."
* last_run_time: Timestamp when the command was running last time (it's
followed by "mailbox sync" that can take some time)
* running_usecs: How many usecs this command itself has spent running
* lock_wait_usecs: How many usecs this command itself has spent waiting for
locks.
* bytes_in, bytes_out: How many bytes of client input/output command has used.
DNS
---
*dns_worker_request_finished* and *dns_request_finished*
* error: Human readable error
* error_code: Error code usable with net_gethosterror()
*dns_worker_request_started* and *dns_request_started*
SQL
---
*sql_query_finished*
* error: Human readable error
* error_code: Error code (if available)
* query_first_word: First word of the query, such as SELECT
*sql_transaction_finished*
* error: Human readable error
* error_code: Error code (if available)
*sql_connection_finished*
(This file was created from the wiki on 2019-06-19 12:42)
|