Skip to content

Commit

Permalink
[doc] Better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel committed Apr 17, 2024
1 parent da53b5c commit d6517e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/static/troubleshoot/ts-logstash.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ Reset the logging level to `info`.

*Symptoms*

When format of log is `json` and certain log events (for example errors from JSON codec plugin)
When log format is `json` and certain log events (for example errors from JSON codec plugin)
contains two instances of the `message` field.

Without setting this flag, json log could contain objects like:
Without setting this flag, json log would contain objects like:

[source,json]
-----
Expand All @@ -231,7 +231,7 @@ Without setting this flag, json log could contain objects like:
}
-----

Please note the duplication of `message` field, that despite is a formally valid json, it's not well accepted by many parsers.
Please note the duplication of `message` field, despite is a formally valid json, it's not well accepted by many parsers.

*Solution*
In `config/logstash.yml` enable the strict json flag:
Expand All @@ -248,8 +248,8 @@ or pass the command line switch
bin/logstash --log.format.json.fix_duplicate_message_fields true
-----

With the `log.format.json.fix_duplicate_message_fields` enabled the duplication of `message` field is removed,
adding a `_1` suffix:
With `log.format.json.fix_duplicate_message_fields` enabled the duplication of `message` field is removed,
adding to the fiels name a `_1` suffix:

[source,json]
-----
Expand Down

0 comments on commit d6517e0

Please sign in to comment.