Skip to content

Commit 2e1af96

Browse files
committed
fix doc
1 parent c471c67 commit 2e1af96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
LogAgent 是用于将后端数据实时导入到 Sensors Analytics 的工具。
66

7-
默认情况下,LogAgent 读取的数据内容应当符合 Sensors Analytics 的数据格式定义,相关定义请参考:
7+
默认情况下,LogAgent 读取的数据内容应当符合 Sensors Analytics 数据格式定义,相关定义请参考:
88

99
https://www.sensorsdata.cn/manual/data_schema.html
1010

@@ -21,7 +21,7 @@ https://www.sensorsdata.cn/manual/data_schema.html
2121
123.123.123.123 - - [03/Sep/2016:15:45:28 +0800] "GET /index.html HTTP/1.1" 200 396 "http://www.baidu.com/test" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
2222
```
2323

24-
经过 **自定义数据预处理模块** 处理,得到 **符合 SensorsAnalytics 的数据格式定义的数据**,内容如下:
24+
经过 **自定义数据预处理模块** 处理,得到 **符合 Sensors Analytics 数据格式定义的数据**,内容如下:
2525

2626
```
2727
[{"distinct_id":"123.123.123.123","time":1472888728000,"type":"event","event":"RawPageView","properties":{"referrer":"http://www.baidu.com/test","status_code":"200","body_bytes_sent":396,"$ip":"123.123.123.123","$user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36","request_line":"GET /index.html HTTP/1.1"}},{"distinct_id":"123.123.123.123","time":1472893665131,"type":"profile_set","properties":{"from_baidu":true}}]
@@ -31,7 +31,7 @@ https://www.sensorsdata.cn/manual/data_schema.html
3131

3232
## 2. 开发方法
3333

34-
自定义 Java 类,并实现 com.sensorsdata.analytics.tools.logagent.Processor 接口即可。
34+
自定义 Java 类,并实现 `com.sensorsdata.analytics.tools.logagent.Processor` 接口即可。
3535

3636
接口定义如下:
3737

@@ -55,9 +55,9 @@ public interface Processor {
5555
jar cvf custom_processor.jar cn/kbyte/CustomProcessor.class
5656
```
5757

58-
log_agent-1.0-SNAPSHOT.jar 可在 LogAgent 部署包中的 lib 目录下找到。
58+
log_agent-1.0-SNAPSHOT.jar 可在 LogAgent 部署包中的 `lib` 目录下找到。
5959

60-
2. 将 jar 放到 LogAgent 的 lib 目录下。
60+
2. 将 jar 放到 LogAgent 的 `lib` 目录下。
6161

6262
3. 在配置文件中设置如下配置:
6363

0 commit comments

Comments
 (0)