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/20 06:26:28 UTC
[GitHub] [skywalking] wangruice opened a new issue #6405: log have no data ,how to config the log collect server
wangruice opened a new issue #6405:
URL: https://github.com/apache/skywalking/issues/6405
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
___
### Question
logback_spring.xml
`<conversionRule conversionWord="tid" converterClass="org.apache.skywalking.apm.toolkit.log.logback.v1.x.LogbackPatternConverter"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder">
<provider class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.logstash.TraceIdJsonProvider">
</provider>
</encoder>
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<pattern>
<pattern>
{
"timestamp":"%d{yyyy-MM-dd HH:mm:ss}",
"level": "%level",
"tid": "%tid",
"thread": "%thread",
"class": "%logger{1.}:%L",
"message": "%message",
"stackTrace": "%exception{10}"
}
</pattern>
</pattern>
</providers>
</encoder>
</appender>
<appender name="grpc-log" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender"/>
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>`
print log
`{"timestamp":"2021-02-20 14:10:09","level":"INFO","tid":"TID:Ignored_Trace","thread":"qtp658673405-54","class":"com.test.common.logging.LogFilter:100","message":"Request uri:/favicon.ico, params: ","stackTrace":""}
{"timestamp":"2021-02-20 14:10:09","level":"INFO","tid":"TID:Ignored_Trace","thread":"qtp658673405-54","class":"com.test.common.logging.LogFilter:72","message":"Request uri:/favicon.ico, cost:6ms","stackTrace":""}`
why skyworking ui log module show no data?
trace is working
----------------------------------------------------------------
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
[GitHub] [skywalking] kezhenxu94 commented on issue #6405: log have no data ,how to config the log collect server
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #6405:
URL: https://github.com/apache/skywalking/issues/6405#issuecomment-782571487
> ```xml
> <root level="INFO">
> <appender-ref ref="STDOUT"/>
> </root>
> ```
This is a simple cause, you configure an appender but didn't use it, try
```xml
<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="grpc-log"/>
</root>
```
----------------------------------------------------------------
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
[GitHub] [skywalking] kezhenxu94 closed issue #6405: log have no data ,how to config the log collect server
Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #6405:
URL: https://github.com/apache/skywalking/issues/6405
----------------------------------------------------------------
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