|
15 | 15 | "type": "string",
|
16 | 16 | "required": true,
|
17 | 17 | "index": 1,
|
| 18 | + "nesting_allowed": false, |
18 | 19 | "url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html"
|
19 | 20 | },
|
20 | 21 | "message": {
|
|
34 | 35 | "url": "https://www.elastic.co/guide/en/ecs/current/ecs-base.html",
|
35 | 36 | "sanitization": {
|
36 | 37 | "key": {
|
37 |
| - "replacements": [ |
38 |
| - ".", |
39 |
| - "*", |
40 |
| - "\\" |
41 |
| - ], |
| 38 | + "replacements": [".", "*", "\\"], |
42 | 39 | "substitute": "_"
|
43 | 40 | }
|
44 | 41 | }
|
| 42 | + }, |
| 43 | + "trace.id": { |
| 44 | + "type": "string", |
| 45 | + "required": false, |
| 46 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-tracing.html", |
| 47 | + "comment": "When APM agents add this field to the context, ecs loggers should pick it up and add it to the log event." |
| 48 | + }, |
| 49 | + "transaction.id": { |
| 50 | + "type": "string", |
| 51 | + "required": false, |
| 52 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-tracing.html", |
| 53 | + "comment": "When APM agents add this field to the context, ecs loggers should pick it up and add it to the log event." |
| 54 | + }, |
| 55 | + "service.name": { |
| 56 | + "type": "string", |
| 57 | + "required": false, |
| 58 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-service.html", |
| 59 | + "comment": [ |
| 60 | + "Configurable by users.", |
| 61 | + "When an APM agent is active, they should auto-configure it if not already set." |
| 62 | + ] |
| 63 | + }, |
| 64 | + "event.dataset": { |
| 65 | + "type": "string", |
| 66 | + "required": false, |
| 67 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-event.html", |
| 68 | + "default": "${service.name}.log OR ${service.name}.${appender.name}", |
| 69 | + "comment": [ |
| 70 | + "Configurable by users.", |
| 71 | + "If the user manually configures the service name,", |
| 72 | + "the logging library should set `event.dataset=${service.name}.log` if not explicitly configured otherwise.", |
| 73 | + "", |
| 74 | + "When agents auto-configure the app to use an ECS logger,", |
| 75 | + "they should set `event.dataset=${service.name}.${appender.name}` if the appender name is available in the logging library.", |
| 76 | + "Otherwise, agents should also set `event.dataset=${service.name}.log`", |
| 77 | + "", |
| 78 | + "The field helps to filter for different log streams from the same pod, for example and is required for log anomaly detection." |
| 79 | + ] |
| 80 | + }, |
| 81 | + "process.thread.name": { |
| 82 | + "type": "string", |
| 83 | + "required": false, |
| 84 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-process.html" |
| 85 | + }, |
| 86 | + "log.logger": { |
| 87 | + "type": "string", |
| 88 | + "required": false, |
| 89 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html" |
| 90 | + }, |
| 91 | + "log.origin.file.line": { |
| 92 | + "type": "integer", |
| 93 | + "required": false, |
| 94 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html", |
| 95 | + "comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event." |
| 96 | + }, |
| 97 | + "log.origin.file.name": { |
| 98 | + "type": "string", |
| 99 | + "required": false, |
| 100 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html", |
| 101 | + "comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event." |
| 102 | + }, |
| 103 | + "log.origin.function": { |
| 104 | + "type": "string", |
| 105 | + "required": false, |
| 106 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html", |
| 107 | + "comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event." |
| 108 | + }, |
| 109 | + "error.type": { |
| 110 | + "type": "string", |
| 111 | + "required": false, |
| 112 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html", |
| 113 | + "comment": "The exception type or class, such as `java.lang.IllegalArgumentException`." |
| 114 | + }, |
| 115 | + "error.message": { |
| 116 | + "type": "string", |
| 117 | + "required": false, |
| 118 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html", |
| 119 | + "comment": "The message of the exception." |
| 120 | + }, |
| 121 | + "error.stack_trace": { |
| 122 | + "type": "string", |
| 123 | + "required": false, |
| 124 | + "url": "https://www.elastic.co/guide/en/ecs/current/ecs-error.html", |
| 125 | + "comment": "The stack trace of the exception as plain text." |
45 | 126 | }
|
46 | 127 | }
|
47 | 128 | }
|
0 commit comments