qlanto224 commented on issue #5746:
URL: https://github.com/apache/skywalking/issues/5746#issuecomment-2061058028

   > 解决了
   > 
   > ```
   >     <appender name="logstash" 
class="net.logstash.logback.appender.LogstashTcpSocketAppender">
   >         <destination>${logging.logstash}</destination>
   >         <encoder charset="UTF-8" 
class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
   >             <providers>
   >                 <provider 
class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.logstash.TraceIdJsonProvider"/>
   >                 <timestamp>
   >                     <timeZone>UTC</timeZone>
   >                 </timestamp>
   >                 <pattern>
   >                     <pattern>
   >                         {
   >                         "level": "%level",
   >                         "serviceName": "${spring.application.name:-}",
   >                         "serviceId": "${spring.application.instance-id:-}",
   >                         "pid": "${PID:-}",
   >                         "tid": "%tid",
   >                         "thread": "%thread",
   >                         "class": "%logger{1.}:%L",
   >                         "message": "%message",
   >                         "stackTrace": "%exception{10}"
   >                         }
   >                     </pattern>
   >                 </pattern>
   >             </providers>
   >         </encoder>
   >     </appender>
   > 
   >     <appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
   >         <discardingThreshold>0</discardingThreshold>
   >         <queueSize>256</queueSize>
   >         <appender-ref ref="logstash"/>
   >     </appender>
   > ```
   
   大佬,等于说要使用LoggingEventCompositeJsonEncoder,必须要用异步发送?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to