Skip to content

Commit

Permalink
add some missing doc updates for the new ecs.version value
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Oct 27, 2023
1 parent b33898b commit e6c93d2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/intro.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ popular web frameworks. A minimal log record includes the following fields:
"@timestamp": "2021-01-13T21:32:38.095Z",
"log.level": "info",
"message": "hi",
"ecs.version": "1.6.0"
"ecs.version": "8.10.0"
}
----

Expand Down
2 changes: 1 addition & 1 deletion docs/morgan.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ similar to the following:
"@timestamp": "2021-01-16T00:03:23.279Z",
"log.level": "info",
"message": "::1 - - [16/Jan/2021:00:03:23 +0000] \"GET / HTTP/1.1\" 200 13 \"-\" \"curl/7.64.1\"",
"ecs.version": "1.6.0",
"ecs.version": "8.10.0",
"http": {
"version": "1.1",
"request": {
Expand Down
6 changes: 3 additions & 3 deletions docs/pino.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Running this will produce log output similar to the following:

[source,cmd]
----
{"log.level":"info","@timestamp":"2023-10-14T02:07:47.901Z","process.pid":56645,"host.hostname":"pink.local","ecs.version":"1.6.0","message":"Hello world"}
{"log.level":"warn","@timestamp":"2023-10-14T02:07:47.901Z","process.pid":56645,"host.hostname":"pink.local","ecs.version":"1.6.0","module":"foo","message":"From child"}
{"log.level":"info","@timestamp":"2023-10-14T02:07:47.901Z","process.pid":56645,"host.hostname":"pink.local","ecs.version":"8.10.0","message":"Hello world"}
{"log.level":"warn","@timestamp":"2023-10-14T02:07:47.901Z","process.pid":56645,"host.hostname":"pink.local","ecs.version":"8.10.0","module":"foo","message":"From child"}
----

[float]
Expand Down Expand Up @@ -162,7 +162,7 @@ For example:
"@timestamp": "2023-10-14T02:10:14.477Z",
"process.pid": 56697,
"host.hostname": "pink.local",
"ecs.version": "1.6.0",
"ecs.version": "8.10.0",
"http": {
"version": "1.1",
"request": {
Expand Down
8 changes: 4 additions & 4 deletions docs/winston.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Running this script (available https://github.com/elastic/ecs-logging-nodejs/blo
[source,cmd]
----
% node examples/basic.js
{"@timestamp":"2023-10-14T02:14:17.302Z","log.level":"info","message":"hi","ecs.version":"1.6.0"}
{"@timestamp":"2023-10-14T02:14:17.304Z","log.level":"error","message":"oops there is a problem","ecs.version":"1.6.0","foo":"bar"}
{"@timestamp":"2023-10-14T02:14:17.302Z","log.level":"info","message":"hi","ecs.version":"8.10.0"}
{"@timestamp":"2023-10-14T02:14:17.304Z","log.level":"error","message":"oops there is a problem","ecs.version":"8.10.0","foo":"bar"}
----

The formatter handles serialization to JSON, so you don't need to add the
Expand Down Expand Up @@ -126,7 +126,7 @@ will yield (pretty-printed for readability):
"message": "boom",
"stack_trace": "Error: boom\n at Object.<anonymous> (..."
},
"ecs.version": "1.6.0"
"ecs.version": "8.10.0"
}
----

Expand Down Expand Up @@ -220,7 +220,7 @@ For https://github.com/elastic/ecs-logging-nodejs/blob/main/packages/ecs-winston
"user_agent": {
"original": "curl/8.1.2"
},
"ecs.version": "1.6.0"
"ecs.version": "8.10.0"
}
----

Expand Down
2 changes: 1 addition & 1 deletion packages/ecs-morgan-format/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ produce log output similar to the following:
"user_agent": {
"original": "curl/8.1.2"
},
"ecs.version": "1.6.0"
"ecs.version": "8.10.0"
}
```

Expand Down

0 comments on commit e6c93d2

Please sign in to comment.