Skip to content

Commit 729c260

Browse files
committed
1.0: Fix wrong output result about json formatter
json formatter doesn't include "time" and "tag" by default. Closes: #381 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent edaf9a8 commit 729c260

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

formatter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ However, if you set `@type json` in `<format>` like this:
4343
The output changes to
4444

4545
```javascript
46-
{"time": "2014-08-25 00:00:00 +0000", "tag":"foo.bar", "k1":"v1", "k2":"v2"}
46+
{"k1":"v1", "k2":"v2"}
4747
```
4848

49-
i.e., each line is a single JSON object with "time" and "tag fields to retain the event's timestamp and tag.
49+
i.e., each line is a single JSON object without "time" and "tag" fields. If you want to include "time" and "tag", use [Inject section](../configuration/inject-section.md).
5050

5151
See [this section](../plugin-development/#text-formatter-plugins) to learn how to develop a custom formatter.
5252

0 commit comments

Comments
 (0)