FILEBEAT+ELK日志收集平台搭建流程 (5)

        <property>{"jv_time":"%d{yyyy-MM-dd HH:mm:ss.SSS}","jv_level":"%level","jv_thread":"%thread","jv_class":"%logger","jv_method":"%M","jv_message":"%replace{%replace{%msg}{"}{\\"}}{\n}{|}","jv_throwable":"%replace{%replace{%xEx}{"}{\\"}}{[\n\r\t]}{|}"}%n{%xEx}{none}</property>

 

    </properties>

 

 

 

<appenders>

...

...

 

重启java项目后,此时日志中的输出就变成json格式了。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zwjxdz.html