Collecting Logs by Agents

Some of SkyWalking native agents support collecting logs and sending them to OAP server without local files and/or file agents, which are listed in here.

Java agent’s toolkits

Java agent provides toolkits for log4j, log4j2, and logback to report logs through gRPC with automatically injected trace context.

SkyWalking Satellite sidecar is a recommended proxy/side that forwards logs (including the use of Kafka MQ to transport logs). When using this, open kafka-fetcher and enable configs enableNativeProtoLog.

Java agent provides toolkits for log4j, log4j2, and logback to report logs through files with automatically injected trace context.

Log framework config examples:

Python agent log reporter

SkyWalking Python Agent implements a log reporter for the logging module with functionalities aligning with the Java toolkits.

To explore how to enable the reporting features for your use cases, please refer to the Log Reporter Doc for a detailed guide.

Golang agent log reporter

SkyWalking Golang Agent implements a log reporter for the logging module with functionality is similar to that of the Java toolkits.

To explore how to enable the reporting features for your use cases, please refer to the Log Reporter Doc for a detailed guide.