V8.7: Logback collects fewer logs than local files #7718
Replies: 3 comments 4 replies
-
I think this description is too abstract for us to response. It is better for you to use a simple codebase and verify which logs are missed. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@xiaogangfighting @wu-sheng receiver-sharing-server:
default:
# 修改 maxMessageSize: ${SW_RECEIVER_GRPC_MAX_MESSAGE_SIZE:0}
maxMessageSize: ${SW_RECEIVER_GRPC_MAX_MESSAGE_SIZE:52428800}
configuration:
grpc:
#修改 maxInboundMessageSize: ${SW_DCS_MAX_INBOUND_MESSAGE_SIZE:4194304}
maxInboundMessageSize: ${SW_DCS_MAX_INBOUND_MESSAGE_SIZE:52428800}
core:
default:
# 修改 maxMessageSize: ${SW_CORE_GRPC_MAX_MESSAGE_SIZE:0}
maxMessageSize: ${SW_CORE_GRPC_MAX_MESSAGE_SIZE:52428800} java demo package com.skywalking.skywalking.test.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
@RestController
@Slf4j
@RequestMapping("log")
public class LogController {
@GetMapping()
public String log() {
String filePath = "D:\\Works\\IdeaProjects\\skywalking-test\\doc\\package.txt";
StringBuilder contentBuilder = new StringBuilder();
try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
String sCurrentLine;
while ((sCurrentLine = br.readLine()) != null) {
contentBuilder.append(sCurrentLine).append("\n");
}
log.info(contentBuilder.toString());
} catch (IOException e) {
log.error("IOException: %s%n", e);
}
log.info("simple log info");
return "success";
}
} my txt file is 588kb. "simple log info" is shown , but txt info is missing in skywalking. my question is how to config so that i can see big log in skywalking ui. thanks! |
Beta Was this translation helpful? Give feedback.
-
Spirngboot + logback integrates the skywalking log system. It is found that the number of logs collected by skywalking does not match the number of local logs, skywalking records much less, and oapserver / agent does not report error information。
thanks & best regards.
Beta Was this translation helpful? Give feedback.
All reactions