Skip to content

Commit 46f9cd2

Browse files
authored
Merge pull request #383 from kenhys/fix-time-and-tag
1.0: Fix wrong output result about json formatter
2 parents edaf9a8 + 729c260 commit 46f9cd2

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)