Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added _media/cdn_log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_path_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_path_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/cdn_quality_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _media/real_cdn_refresh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- [事件上报](features/udf.md)
- [事务上报](features/transaction.md)
- [**API Specs**](api/spec.md)
- [**日志搜索语法**](settings/search-syntax.md)
- [**设置**](settings/settings.md)
- [用户管理](settings/users.md)
- **更多**
Expand Down
25 changes: 25 additions & 0 deletions features/cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,29 @@
![image](../_media/cdn_day_active_1.png)
![image](../_media/cdn_day_active_2.png)

### 质量分析
![image](../_media/cdn_quality_1.png)
![image](../_media/cdn_quality_2.png)
![image](../_media/cdn_quality_3.png)
![image](../_media/cdn_quality_4.png)
![image](../_media/cdn_quality_5.png)
![image](../_media/cdn_quality_6.png)
![image](../_media/cdn_quality_7.png)
响应时间、响应速度可以进行下钻。点击柱状图展示散点图。点击具体的一个点可以查看原始日志。
![image](../_media/cdn_quality_8.png)
![image](../_media/cdn_quality_9.png)


### 路径分析
显示 PATH 的访问数据以及流量排序。点击 PATH 可以查看原始日志。
![image](../_media/cdn_path_1.png)

### 查询
查询原始日志,搜索使用的是 ES 语法,例如:A:B AND C:D
![image](../_media/cdn_log.png)

### 实时 CDN 刷新分析
![image](../_media/real_cdn_refresh.png)


更多的展示维度正在酝酿中,敬请期待。
55 changes: 55 additions & 0 deletions settings/search-syntax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
### 搜索语法

### 使用 lucene 语法搜索
##### 条件编写规范
| 名称 | 语义 |
| - | - |
| * | 查询所有内容 |
| AND | query1 AND query2,查询交集 |
| OR | query1 OR query2,查询并集 |
| NOT | query1 AND NOT query2,表示符合query1,不符合query2的结果 |
| () | 把一个或多个query合并成一个query,提升优先级 |
| [] | 区间查询,包括边界,如 `status:[400 TO 500]` 查询 `status` 字段在 400 到 500 区间内的数据 |
| {} | 区间查询,不包括边界,如 `status:{400 TO 500}` 查询 `status` 字段在 400 到 500 区间内的数据,并排除边界值 |
| \ | 转义字符,如正则表达式搜索时表达式包含反斜杠的情况,如 `request_path:/\/query\/abc\/.*/` 查询 `request_path` 字段匹配正则表达式 `/path/abc/.* `的数据 |
| >,=,<,<=,>= | 区间查询,如 `status:>=500` 查询 `status` 大于 500 的数据 |

##### 查询举例
字段名称`name`,类型`string`,包含内容`a`的记录:
>``
name:a
``

字段名称`ip`,类型`string`,包含内容`a`或`b`的记录:
>``
ip:a OR ip:b
``

字段名称`hosts`,类型`string`,包含内容`a`或者`b`,不包含`c`的记录:
>``
(hosts:a OR hosts:b) AND (NOT hosts:c)
``

字段名称`ip`,类型`string`,包含内容`a`或`b`,同时字段名称`hosts`,类型`string`,包含内容`c`的记录:
>``
(ip:a OR ip:b) AND (hosts:c)
``

字段名称`createTime`,类型`date`,包含内容`2018-10-01`到`2018-10-02`的记录:
>``
createTime:[2018-10-01 TO 2018-10-02]
``

字段名称`count`,类型`long`或者`float`,内容大于`5`的记录:
>``
count:>5
``