You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/02/05 02:51:31 UTC

[GitHub] [skywalking] zxz9325 commented on issue #6325: about skywalking8.4.0's new feature for collecting logs

zxz9325 commented on issue #6325:
URL: https://github.com/apache/skywalking/issues/6325#issuecomment-773747369


   I can already see demo env  the results.
   
   1. maven config
   
      `  <dependency> `
                `<groupId>org.apache.skywalking</groupId> `
                `<artifactId>apm-toolkit-log4j-2.x</artifactId> `
                `<version>8.4.0</version> `
           ` </dependency>`
   
   2. log4j2.xml config
       `    <appenders> `
             `   <Console name="Console" target="SYSTEM_OUT"> `
                  `<PatternLayout pattern="%d [%traceId] %-5p %c{1}:%L - %m%n"/> `
           ` </Console> `
   
           ` <GRPCLogClientAppender name="grpc-log"/> `
      `  </appenders>`
   
   3. agent.conf  add config
     `plugin.toolkit.log.grpc.reporter.server_host=${SW_GRPC_LOG_SERVER_HOST:127.0.0.1}`
     `plugin.toolkit.log.grpc.reporter.server_port=${SW_GRPC_LOG_SERVER_PORT:11800}`
    `plugin.toolkit.log.grpc.reporter.max_message_size=${SW_GRPC_LOG_MAX_MESSAGE_SIZE:10485760}`
    `plugin.toolkit.log.grpc.reporter.upstream_timeout=${SW_GRPC_LOG_GRPC_UPSTREAM_TIMEOUT:30}`
   
   4. skywalking 8.4 the storage mode of choice is H2
   
   Such configuration, I can print tracID in the log, but I don't have the log report effect, is there anything else that needs to be configured?


----------------------------------------------------------------
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.

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