|
8 | 8 | "level-field": "s", |
9 | 9 | "body-field": "msg", |
10 | 10 | "timestamp-field": "t/$date", |
| 11 | + "duration-field": "attr/durationMillis", |
| 12 | + "duration-divisor": 1000, |
11 | 13 | "line-format": [ |
12 | 14 | { |
13 | 15 | "field": "__timestamp__" |
|
50 | 52 | "default-value": "" |
51 | 53 | }, |
52 | 54 | { |
53 | | - "prefix": " (\u2194 ", |
54 | | - "field": "attr/durationMillis", |
| 55 | + "prefix": " deleted ", |
| 56 | + "field": "attr/ndeleted", |
55 | 57 | "default-value": "", |
56 | | - "suffix": "ms" |
| 58 | + "suffix": " doc(s) using" |
| 59 | + }, |
| 60 | + { |
| 61 | + "prefix": " inserted ", |
| 62 | + "field": "attr/ninserted", |
| 63 | + "default-value": "", |
| 64 | + "suffix": " doc(s) using" |
| 65 | + }, |
| 66 | + { |
| 67 | + "prefix": " got ", |
| 68 | + "field": "attr/nreturned", |
| 69 | + "default-value": "", |
| 70 | + "suffix": " doc(s) using" |
| 71 | + }, |
| 72 | + { |
| 73 | + "prefix": " (\u2194 ", |
| 74 | + "field": "__duration__", |
| 75 | + "default-value": "" |
57 | 76 | }, |
58 | 77 | { |
59 | 78 | "prefix": " ", |
|
135 | 154 | "debug4": "D4", |
136 | 155 | "debug5": "D5" |
137 | 156 | }, |
| 157 | + "opid": { |
| 158 | + "source": "from-whole-msg", |
| 159 | + "description": { |
| 160 | + "find": { |
| 161 | + "format": [ |
| 162 | + { |
| 163 | + "field": "attr/ns" |
| 164 | + } |
| 165 | + ] |
| 166 | + } |
| 167 | + } |
| 168 | + }, |
138 | 169 | "value": { |
139 | 170 | "s": { |
140 | 171 | "kind": "string", |
|
166 | 197 | "hidden": true, |
167 | 198 | "description": "Additional attributes for the log message" |
168 | 199 | }, |
| 200 | + "attr/action/outcome/errorMessage": { |
| 201 | + "kind": "string", |
| 202 | + "highlights": { |
| 203 | + "error": { |
| 204 | + "base-style": { |
| 205 | + "color": "Red" |
| 206 | + } |
| 207 | + } |
| 208 | + } |
| 209 | + }, |
169 | 210 | "attr/authenticationDatabase": { |
170 | 211 | "kind": "string", |
171 | 212 | "description": "The authenticating database for a connection" |
|
211 | 252 | "kind": "json", |
212 | 253 | "description": "The document for a command" |
213 | 254 | }, |
| 255 | + "attr/errMsg": { |
| 256 | + "kind": "string", |
| 257 | + "highlights": { |
| 258 | + "error": { |
| 259 | + "base-style": { |
| 260 | + "color": "Red" |
| 261 | + } |
| 262 | + } |
| 263 | + } |
| 264 | + }, |
| 265 | + "attr/errName": { |
| 266 | + "kind": "string", |
| 267 | + "highlights": { |
| 268 | + "error": { |
| 269 | + "base-style": { |
| 270 | + "color": "Red" |
| 271 | + } |
| 272 | + } |
| 273 | + } |
| 274 | + }, |
| 275 | + "attr/error": { |
| 276 | + "highlights": { |
| 277 | + "error": { |
| 278 | + "base-style": { |
| 279 | + "color": "Red" |
| 280 | + } |
| 281 | + } |
| 282 | + } |
| 283 | + }, |
214 | 284 | "attr/durationMillis": { |
215 | 285 | "kind": "integer", |
216 | 286 | "description": "The duration of the operation in milliseconds" |
|
224 | 294 | "description": "The namespace for a query", |
225 | 295 | "identifier": true |
226 | 296 | }, |
| 297 | + "attr/ndeleted": { |
| 298 | + "kind": "integer", |
| 299 | + "description": "The number of documents deleted" |
| 300 | + }, |
| 301 | + "attr/ninserted": { |
| 302 | + "kind": "integer", |
| 303 | + "description": "The number of documents inserted" |
| 304 | + }, |
227 | 305 | "attr/ns" : { |
228 | 306 | "kind": "string", |
229 | 307 | "description": "The namespace for a query" |
|
232 | 310 | "kind": "integer", |
233 | 311 | "description": "The number of documents deleted" |
234 | 312 | }, |
| 313 | + "attr/nreturned": { |
| 314 | + "kind": "integer", |
| 315 | + "description": "The number of documents returned by the query" |
| 316 | + }, |
235 | 317 | "attr/originatingCommand/filter": { |
236 | 318 | "kind": "json", |
237 | 319 | "description": "The filter of the originating command for a query" |
|
0 commit comments