You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/enrich-processor/normalize-for-stream.md
+4-22Lines changed: 4 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,25 +168,15 @@ For example, if the `message` field is an ECS-JSON, as follows:
168
168
```json
169
169
{
170
170
"@timestamp": "2023-10-01T12:00:00Z",
171
-
"message": {
172
-
"@timestamp": "2023-10-02T12:00:00Z",
173
-
"log.level": "INFO",
174
-
"service.name": "my-service",
175
-
"message": "The actual log message",
176
-
"http": {
177
-
"method": "GET",
178
-
"url": {
179
-
"path": "/api/v1/resource"
180
-
}
181
-
}
182
-
}
171
+
"message": "{\"@timestamp\":\"2023-10-01T12:01:00Z\",\"log.level\":\"INFO\",\"service.name\":\"my-service\",\"message\":\"The actual log message\",\"http\":{\"method\":\"GET\",\"url\":{\"path\":\"/api/v1/resource\"}}}"
172
+
183
173
}
184
174
```
185
175
it will be normalized into the following form:
186
176
187
177
```json
188
178
{
189
-
"@timestamp": "2023-10-02T12:00:00Z",
179
+
"@timestamp": "2023-10-01T12:01:00Z",
190
180
"severity_text": "INFO",
191
181
"body": {
192
182
"text": "The actual log message"
@@ -215,15 +205,7 @@ However, if the `message` field is not recognized as ECS format, as follows:
0 commit comments