Skip to content

Commit

Permalink
add a note JSON is in ECS format (#93450) (#93492)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov authored Mar 3, 2021
1 parent 97ccf1e commit f3d06f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/logging/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ There are two types of layout supported at the moment: `pattern` and `json`.

### Pattern layout
With `pattern` layout it's possible to define a string pattern with special placeholders `%conversion_pattern` (see the table below) that
will be replaced with data from the actual log message. By default the following pattern is used:
will be replaced with data from the actual log message. By default the following pattern is used:
`[%date][%level][%logger] %message`. Also `highlight` option can be enabled for `pattern` layout so that
some parts of the log message are highlighted with different colors that may be quite handy if log messages are forwarded
to the terminal with color support.
Expand Down Expand Up @@ -143,7 +143,7 @@ Example of `%date` output:
Outputs the process ID.

### JSON layout
With `json` layout log messages will be formatted as JSON strings that include timestamp, log level, context name, message
With `json` layout log messages will be formatted as JSON strings in [ECS format](https://www.elastic.co/guide/en/ecs/current/ecs-reference.html) that includes a timestamp, log level, context name, message
text and any other metadata that may be associated with the log message itself.

## Appenders
Expand Down

0 comments on commit f3d06f3

Please sign in to comment.