更新时间:2022-11-15 13:24:09
查看上下文功能用于出现故障排查或关键信息定位场景时,可查看关键日志事件的上下文原始日志信息,从而了解事件发生的脉络,具体操作如下:
1. 进入搜索页面,在右侧搜索事件列表,选择需查看的日志文件,点击
图标,显示查看上下文页面,如下所示:
![](https://assets.aishu.cn/help-center/anyrobot/3.0.19.2/image653.png)
2. 在查看上下文页面可进行如下操作:
• 支持字符串搜索:搜索结果高亮显示、支持点击
/
按钮上下条日志逐一查看;支持显示搜索结果总数以及当前日志事件所处项,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%90%9C%E7%B4%A2_M15.png)
• 支持切换显示方式:单行显示/自动换行,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E5%88%87%E6%8D%A2%E6%98%BE%E7%A4%BA%E6%96%B9%E5%BC%8F_M15.png)
• 支持设置显示字体大小:可自定义输入字体大小或在下拉列表中进行选择,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E8%AE%BE%E7%BD%AE%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F_M15.png)
• 支持设置显示背景:点击
/
可切换浅色或深色背景模式,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87-%E6%A8%A1%E5%BC%8F%E5%AF%B9%E6%AF%94.png)
3. 点击
图标,可关闭查看上下文页面。
1. 进入搜索页面,在右侧搜索事件列表,选择需查看的日志文件,点击
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87.png)
![](https://assets.aishu.cn/help-center/anyrobot/3.0.19.2/image653.png)
2. 在查看上下文页面可进行如下操作:
• 支持字符串搜索:搜索结果高亮显示、支持点击
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E9%80%90%E6%9D%A1%E5%90%91%E4%B8%8A_M15.png)
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E9%80%90%E6%9D%A1%E5%90%91%E4%B8%8B_M15.png)
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%90%9C%E7%B4%A2_M15.png)
• 支持切换显示方式:单行显示/自动换行,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E5%88%87%E6%8D%A2%E6%98%BE%E7%A4%BA%E6%96%B9%E5%BC%8F_M15.png)
• 支持设置显示字体大小:可自定义输入字体大小或在下拉列表中进行选择,如下所示:
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/5_1_6_%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87_%E8%AE%BE%E7%BD%AE%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F_M15.png)
• 支持设置显示背景:点击
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87-%E6%B5%85%E8%89%B2%E6%A8%A1%E5%BC%8F%E6%8C%89%E9%92%AE.png)
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87-%E6%B7%B1%E8%89%B2%E6%A8%A1%E5%BC%8F%E6%8C%89%E9%92%AE.png)
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87-%E6%A8%A1%E5%BC%8F%E5%AF%B9%E6%AF%94.png)
3. 点击
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%9F%A5%E7%9C%8B%E4%B8%8A%E4%B8%8B%E6%96%87-%E5%85%B3%E9%97%AD_1.png)
< 上一篇:
下一篇: >