Query Logs

<p class="shortdesc">This feature enables you to obtain data matching specific criteria from massive log data within a second. </p> <section class="section prereq" id="Search_Log__prereq_llr_dxz_wmb"><div class="tasklabel"><h2 class="doc-tairway">Before you begin</h2></div> <ol class="ol" id="Search_Log__ol_o5m_brl_wnb"> <li class="li">You have successfully created a collection policy. For more information, see <a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Strategy" target="_blank">Create a General Collection Policy</a> or <a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Nginx_Strategy" target="_blank">Create an Nginx Collection Policy</a>. </li> <li class="li">The device from which you collect logs has incremental log data. </li> </ol> </section> <section><div class="tasklabel"><h2 class="doc-tairway">Procedure</h2></div><ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd"> Log in to the<a class="xref" href="/console/logcloud/indexed/list" target="_blank">Log Service Console</a>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the left navigation pane, click <span class="ph uicontrol">Log</span> <span class="ph uicontrol">Search.</span></span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="ph uicontrol">Log Search</span> page, select the target region, and then configure the following parameters:</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">Parameter</th> <th class="entry" id="Search_Log__table_llt_fxz_wmb__entry__2">Description</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "> <p class="p">Project</p> </td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "> <p class="p">Select the name of the project to which the target logs belong.</p> </td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "> <p class="p">Host group</p> </td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "> <p class="p">Select the host group to which the target logs belong.</p> </td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "> <p class="p">Time range</p> </td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "> <p class="p">Select the time range of the target logs.</p> </td> </tr> <tr class="row"> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__1 "> <p class="p">Search text</p> </td> <td class="entry" headers="Search_Log__table_llt_fxz_wmb__entry__2 "> <p class="p">Enter the keyword or query syntax.</p> </td> </tr> </tbody></table> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click the query icon<img class="image" id="Search_Log__image_vhk_3xz_wmb" src="https://obs-cn-shanghai.yun.pingan.com/pcp-portal/20210106133704-182074ad9c14.png" width="24">.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Log Chart</span> area, view the query results.</span> <div class="itemgroup info"> <ul class="ul" id="Search_Log__ul_tcy_15l_wnb"> <li class="li"><span class="ph uicontrol">Log Quantity—</span>Number of logs collected per unit time.</li> <li class="li"><span class="ph uicontrol">Time/Source—</span>Time when a log was recorded and name of the host where the log was generated.</li> <li class="li"><span class="ph uicontrol">Content—</span>Log details.</li> </ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Click <span class="ph uicontrol">DOWNLOAD REPORT</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the <span class="ph uicontrol">Download Report</span> page, download the logs by clicking <span class="ph uicontrol">OUTER NETWORK DOWNLOAD</span> or <span class="ph uicontrol">INNER NETWORK DOWNLOAD</span>. </span> </li></ol></section>
Did the above content solve your problem? Yes No
Please complete information!

Call us

400-151-8800

Email us

cloud@pingan.com

Online customer service

Instant reply

Technical Support

cloud products