未验证 提交 7aa19962 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Polich 8.6.0 doc (#7079)

上级 5eb10216
...@@ -57,3 +57,5 @@ github: ...@@ -57,3 +57,5 @@ github:
whatever: Just a placehold to make it take effects whatever: Just a placehold to make it take effects
website-docs/8.5.0: website-docs/8.5.0:
whatever: Just a placehold to make it take effects whatever: Just a placehold to make it take effects
website-docs/8.6.0:
whatever: Just a placehold to make it take effects
...@@ -3,6 +3,17 @@ ...@@ -3,6 +3,17 @@
## Collecting ## Collecting
There are various ways to collect logs from application. There are various ways to collect logs from application.
### Log files collector
You can use [Filebeat](https://www.elastic.co/cn/beats/filebeat)[Fluentd](https://fluentd.org) to
collect file logs including to use Kafka MQ to transport [native-json](../../protocols/Log-Data-Protocol.md#Native-Json-Protocol)
format logs. When use this, need to open [kafka-fetcher](backend-fetcher.md#kafka-fetcher)
and enable configs `enableNativeJsonLog`.
Collector config examples:
- [filebeat.yml](../../../../test/e2e/e2e-test/docker/kafka/filebeat.yml)
- [fluentd.conf](../../../../test/e2e/e2e-test/docker/kafka/fluentd.conf)
### Java agent's toolkits ### Java agent's toolkits
Java agent provides toolkit for Java agent provides toolkit for
[log4j](../service-agent/java-agent/Application-toolkit-log4j-1.x.md), [log4j](../service-agent/java-agent/Application-toolkit-log4j-1.x.md),
...@@ -14,8 +25,6 @@ to report logs through gRPC with automatic injected trace context. ...@@ -14,8 +25,6 @@ to report logs through gRPC with automatic injected trace context.
forward logs including to use Kafka MQ to transport logs. When use this, need to open [kafka-fetcher](backend-fetcher.md#kafka-fetcher) forward logs including to use Kafka MQ to transport logs. When use this, need to open [kafka-fetcher](backend-fetcher.md#kafka-fetcher)
and enable configs `enableNativeProtoLog`. and enable configs `enableNativeProtoLog`.
### Log files collector
Java agent provides toolkit for Java agent provides toolkit for
[log4j](../service-agent/java-agent/Application-toolkit-log4j-1.x.md#print-skywalking-context-in-your-logs), [log4j](../service-agent/java-agent/Application-toolkit-log4j-1.x.md#print-skywalking-context-in-your-logs),
[log4j2](../service-agent/java-agent/Application-toolkit-log4j-2.x.md#print-skywalking-context-in-your-logs), [log4j2](../service-agent/java-agent/Application-toolkit-log4j-2.x.md#print-skywalking-context-in-your-logs),
...@@ -27,15 +36,6 @@ Log framework config examples: ...@@ -27,15 +36,6 @@ Log framework config examples:
- [log4j2.x fileAppender](../../../../test/e2e/e2e-service-provider/src/main/resources/log4j2.xml) - [log4j2.x fileAppender](../../../../test/e2e/e2e-service-provider/src/main/resources/log4j2.xml)
- [logback fileAppender](../../../../test/e2e/e2e-service-provider/src/main/resources/logback.xml) - [logback fileAppender](../../../../test/e2e/e2e-service-provider/src/main/resources/logback.xml)
You can use [Filebeat](https://www.elastic.co/cn/beats/filebeat)[Fluentd](https://fluentd.org) to
collect file logs including to use Kafka MQ to transport [native-json](../../protocols/Log-Data-Protocol.md#Native-Json-Protocol)
format logs. When use this, need to open [kafka-fetcher](backend-fetcher.md#kafka-fetcher)
and enable configs `enableNativeJsonLog`.
Collector config examples:
- [filebeat.yml](../../../../test/e2e/e2e-test/docker/kafka/filebeat.yml)
- [fluentd.conf](../../../../test/e2e/e2e-test/docker/kafka/fluentd.conf)
## Log Analyzer ## Log Analyzer
Log analyzer of OAP server supports native log data. OAP could use Log Analysis Language to Log analyzer of OAP server supports native log data. OAP could use Log Analysis Language to
...@@ -50,4 +50,4 @@ log-analyzer: ...@@ -50,4 +50,4 @@ log-analyzer:
malFiles: ${SW_LOG_MAL_FILES:""} malFiles: ${SW_LOG_MAL_FILES:""}
``` ```
Read [Log Analysis Language](../../concepts-and-designs/lal.md) documentation to learn log structurize and metrics analysis. Read [Log Analysis Language](../../concepts-and-designs/lal.md) documentation to learn log structurize and metrics analysis.
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册