查询日志

<p class="shortdesc">本文主要介绍如何查询日志。</p> <section class="section prereq" id="Search_Log__prereq_llr_dxz_wmb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div> <ol class="ol" id="Search_Log__ol_p1t_dxz_wmb"> <li class="li">您已成功创建采集策略,可参考<a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Strategy" target="_blank">创建通用采集策略</a>或<a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Nginx_Strategy" target="_blank">创建Nginx采集策略</a>。</li> <li class="li">您采集日志的设备有增量日志数据。</li> </ol> </section> <section class="section context"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <p class="p">平安云日志服务可针对采集到的日志数据,按照指定的条件进行秒级查询。</p> <p class="p">日志服务提供的查询功能可使您从海量的日志数据中迅速搜索定位到想要查看的内容。</p> </section> <section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd"> 登录<a class="xref" href="/console/logcloud/indexed/list" target="_blank">日志服务管理控制台</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">日志搜索</span>,进入<span class="keyword wintitle">日志搜索</span>页面。</span> </li><li class="li step stepexpand"> <span class="ph cmd">选择目标地域,填写以下内容:</span> <div class="itemgroup info"> <table class="table" id="Search_Log__table_llt_fxz_wmb"><caption></caption><colgroup><col><col></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Search_Log__table_llt_fxz_wmb__entry__1">参数</th> <th class="entry" id="Search_Log__table_llt_fxz_wmb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "><p class="p">项目</p></td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "><p class="p">选择待查询日志所属的项目名称。</p></td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "><p class="p">主机组</p></td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "><p class="p">选择待查询日志所属的主机组。</p></td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "><p class="p">时间范围</p></td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "><p class="p">选择待查询日志的时间范围。</p></td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "><p class="p">搜索文本</p></td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "><p class="p">可通过关键字或搜索语法对采集到的日志进行搜索。</p></td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<img class="image" id="Search_Log__image_vhk_3xz_wmb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20210106133704-1efde7669058.png" width="24">,根据设置的条件搜索日志。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在当前页面的<span class="ph uicontrol">日志图表</span>区域查看日志的相关内容。</span> <div class="itemgroup info"><ul class="ul" id="Search_Log__ul_aq3_kxz_wmb"> <li class="li"><span class="ph uicontrol"> 日志数量(个)</span>:单位时间内采集到的日志数量,单位是个。</li> <li class="li"><span class="ph uicontrol"> 时间</span><span class="ph uicontrol">/</span><span class="ph uicontrol">主机:</span>记录日志的时间,及产生日志所在的主机名称。</li> <li class="li"><span class="ph uicontrol"> 内容:</span>所采集日志的详细信息。</li> </ul><img class="image" id="Search_Log__image_wlb_mxz_wmb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20210106133702-1f92d7349a46.png" width="830"></div> </li><li class="li step stepexpand"> <span class="ph cmd">单击<span class="ph uicontrol">下载报告</span>,进入<span class="keyword wintitle">下载报告</span>页面。可通过<span class="ph uicontrol">外网下载</span>及<span class="ph uicontrol">内网下载</span>两种方式,下载日志。 </span> <div class="itemgroup info"><img class="image" id="Search_Log__image_in5_nxz_wmb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20210106133703-1eeeb81c9f3b.png"></div> </li></ol></section>
以上内容是否解决了您的问题?
请补全提交信息!
咨询·建议

电话咨询

400-151-8800

邮件咨询

cloud@pingan.com

在线客服

工单支持

解决云产品相关技术问题