日志写为json格式的问题 #949
Answered
by
liuqing6767
lf2186
asked this question in
Q&A (问题和回答)
-
Beta Was this translation helpful? Give feedback.
Answered by
liuqing6767
Jan 12, 2022
Replies: 1 comment
-
基于问题描述,做了一个配置:
可得到如下日志:
问题中的示例:
配置项具体构造过程建议如下步骤:
(json操作可以用 https://www.bejson.com/) 另外,请关注:如果变量计算结果存在 双引号,因为 日志生产时不会转义,可能出现非法json字符串。 请按建议步骤再进行尝试或反馈。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lf2186
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基于问题描述,做了一个配置: