forked from docs/doc-exports
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com> Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
922 lines
62 KiB
HTML
922 lines
62 KiB
HTML
<a name="lts_api_0028"></a><a name="lts_api_0028"></a>
|
|
|
|
<h1 class="topictitle1">Querying Logs</h1>
|
|
<div id="body32001227"><div class="section" id="lts_api_0028__en-us_topic_0266335031_section710965117263"><h4 class="sectiontitle">Function</h4><p id="lts_api_0028__en-us_topic_0266335031_p14109115116269">This API is used to query logs in a specified log stream.</p>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section151102051112620"><h4 class="sectiontitle">URI</h4><p id="lts_api_0028__en-us_topic_0266335031_p3110251102616">POST /v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table9110051142610" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row91107512265"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p10110115110265">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.2.3.2.5.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p1711111517266">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p811135112611">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.2.5.1.4"><p id="lts_api_0028__en-us_topic_0266335031_p3111165111265">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row7110165162612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p411145112267">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.2.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p17111135142615">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p7111651132616">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p31121451132614">Project ID. For details about how to obtain the ID, see <a href="lts_api_0006.html#lts_api_0006">Obtaining the AccountID, Project ID, Log Group ID, and Log Stream ID</a>.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p17112145122619">Default value: None</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p11112205172618">Value length: 32 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row91101851132617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p14112145182618">log_group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.2.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p201129517263">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p6113251132613">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p01131351162611">Log group ID.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p18261715452">Default value: None</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p1011385172615">Value length: 36 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row18110251122618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p3113135122611">log_stream_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.2.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p9113551102614">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p20113351192619">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p18113145118265">Log stream ID.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p18114115152617">Default value: None</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p6114145117266">Value length: 36 characters</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section12114175112268"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row91141951202620"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p101141251112614">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.3.2.2.5.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p13115651112616">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p1511595117268">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.2.5.1.4"><p id="lts_api_0028__en-us_topic_0266335031_p6115151192617">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row911475116269"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p18115185117264">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.2.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1611516515262">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p21158513263">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p1211512517262">User token obtained from IAM.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p31161151172617">Default value: None</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p91163515268">Minimum length: 1000 characters</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p2116175118265">Maximum length: 2000 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row211435172610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p151167511267">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.2.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p11116165118262">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p21171351172617">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p195851532162819">Set this parameter to <strong id="lts_api_0028__en-us_topic_0266335031_b76421177485">application/json;charset=UTF-8</strong>.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p758553219284">Default value: None</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p195856323283">Minimum length: 30 characters</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p105851327282">Maximum length: 30 characters</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_requestParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row141171451132618"><th align="left" class="cellrowborder" valign="top" width="18.39%" id="mcps1.3.3.3.2.5.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p131181751152618">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.99%" id="mcps1.3.3.3.2.5.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p1211895142615">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.62%" id="mcps1.3.3.3.2.5.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p111185513263">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.5.1.4"><p id="lts_api_0028__en-us_topic_0266335031_p71181751132620">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row611714512265"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p41191851102615">start_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p111191551162618">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1411913519263">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><div class="p" id="lts_api_0028__en-us_topic_0266335031_p8119115117261">UTC start time of the search window (in milliseconds).<div class="note" id="lts_api_0028__en-us_topic_0266335031_note57891479313"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="lts_api_0028__en-us_topic_0266335031_p7790147173114">Maximum query time range: 30 days</p>
|
|
</div></div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row811715115265"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p13120195113266">end_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p111201851152610">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1012075113262">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p212010512263">UTC end time of the search window (in milliseconds).</p>
|
|
<div class="note" id="lts_api_0028__en-us_topic_0266335031_note762313113211"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="lts_api_0028__en-us_topic_0266335031_p1662141313322">Maximum query time range: 30 days</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row181171751172619"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p8120165114266">labels</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p2012065122614">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p355492118223"><span style="color:#252B3A;">Map</span><span style="color:#252B3A;"><</span><span style="color:#252B3A;">String,String</span><span style="color:#252B3A;">></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p1512120510269">Filter criteria, which vary between log sources.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row14117195110265"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p101214515265">keywords</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1212135111262">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p11121105117264">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p6121751142610">Keyword used for search. A keyword is a word between two adjacent delimiters.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p312175182616">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul12121125118264"><li id="lts_api_0028__en-us_topic_0266335031_li151221451102619"><strong id="lts_api_0028__en-us_topic_0266335031_b127798585219">error</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row11171851182613"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p3122125172610">line_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1412285119266">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1112225114261">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p171221051132617">Sequence number of a log event. This parameter is not required for the first query, but is required for subsequent pagination queries. The value can be obtained from the response of the last query. The value of <strong id="lts_api_0028__en-us_topic_0266335031_b52795289410">line_num</strong> should be between the values of <strong id="lts_api_0028__en-us_topic_0266335031_b927511816516">start_time</strong> and <strong id="lts_api_0028__en-us_topic_0266335031_b99309101854">end_time</strong>.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p6122751172613">Value length: 19 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row1711816518265"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p11122145192613">is_desc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p712265122615">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p14123105115262">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p7123651162611">Whether the search order is descending or ascending. The default value is <strong id="lts_api_0028__en-us_topic_0266335031_b51026503102">false</strong>, indicating that search results are displayed in ascending order.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p15123451112611">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul712345110264"><li id="lts_api_0028__en-us_topic_0266335031_li3123185172615"><strong id="lts_api_0028__en-us_topic_0266335031_b1706105755114">false</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row19118135113268"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p71232510266">search_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p16123195115269">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p6123125122619">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p151232513269">The value is <strong id="lts_api_0028__en-us_topic_0266335031_b128731155191117">init</strong> (default value) for the first query, or <strong id="lts_api_0028__en-us_topic_0266335031_b13348426135">forwards</strong> or <strong id="lts_api_0028__en-us_topic_0266335031_b17640145131316">backwards</strong> for a pagination query. This parameter is used together with <strong id="lts_api_0028__en-us_topic_0266335031_b148282010146">is_desc</strong> for pagination queries.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p112313517264">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul31231951192615"><li id="lts_api_0028__en-us_topic_0266335031_li112485102615"><strong id="lts_api_0028__en-us_topic_0266335031_b2635194718511">forwards</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row1711855120269"><td class="cellrowborder" valign="top" width="18.39%" headers="mcps1.3.3.3.2.5.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p14124145132614">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.99%" headers="mcps1.3.3.3.2.5.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p11124105122617">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.62%" headers="mcps1.3.3.3.2.5.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p12124851132615">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="lts_api_0028__en-us_topic_0266335031_p91243517267">Number of logs to be queried each time. The value is <strong id="lts_api_0028__en-us_topic_0266335031_b9396948229">50</strong> when this parameter is not set. You are advised to set this parameter to <strong id="lts_api_0028__en-us_topic_0266335031_b1023512102227">100</strong>.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p171242516266">Minimum value: <strong id="lts_api_0028__en-us_topic_0266335031_b12338648125019">1</strong></p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p101241551182618">Maximum value: <strong id="lts_api_0028__en-us_topic_0266335031_b18706146125019">5000</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section91261751122615"><h4 class="sectiontitle">Response Parameters</h4><p id="lts_api_0028__en-us_topic_0266335031_p17126751162611"><strong id="lts_api_0028__en-us_topic_0266335031_b7329172316521">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_responseParameter" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameter</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row212625117263"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p13127185111267">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p112710512267">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p71271951142613">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row812685182616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p312845172612">logs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p3128951112614">Array of <a href="#lts_api_0028__en-us_topic_0266335031_response_LogContents">LogContents</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p712814514264">Information of logs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row5422113962615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p64228399262">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p340320082713">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1342273920268">Number of logs.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="lts_api_0028__en-us_topic_0266335031_response_LogContents"></a><a name="en-us_topic_0266335031_response_LogContents"></a><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_response_LogContents" frame="border" border="1" rules="all"><caption><b>Table 5 </b>LogContents</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row201285517267"><th align="left" class="cellrowborder" valign="top" width="15.6%" id="mcps1.3.4.4.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p3129185119264">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.4%" id="mcps1.3.4.4.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p112910515269">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p1412965112261">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row81281651172617"><td class="cellrowborder" valign="top" width="15.6%" headers="mcps1.3.4.4.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p13129751102618">content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.4%" headers="mcps1.3.4.4.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p19129165115268">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p3129195132613">Raw log data.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p14130551102613">Minimum length: 1 character</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p171301051122612">Maximum length: 10,000 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row012845192611"><td class="cellrowborder" valign="top" width="15.6%" headers="mcps1.3.4.4.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p1713015516265">line_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.4%" headers="mcps1.3.4.4.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1013055111264">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p2130125192615">Sequence number of a log event.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p813005152618">Value length: 19 characters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row1912813513269"><td class="cellrowborder" valign="top" width="15.6%" headers="mcps1.3.4.4.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p11130165113267">labels</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.4%" headers="mcps1.3.4.4.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p9862185243214"><span style="color:#252B3A;">Map</span><span style="color:#252B3A;"><</span><span style="color:#252B3A;">String,String</span><span style="color:#252B3A;">></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p713012515269">Labels contained in a log event. The labels vary depending on log events.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p313310511265"><strong id="lts_api_0028__en-us_topic_0266335031_b34433287525">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table3133125114269" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row19134451102619"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p4134115112611">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p0134135113260">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p1013495122613">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row1313417517261"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p1813414511269">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p121351151162619">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p713565111262">Error code.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p313535192618">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul5135551112612"><li id="lts_api_0028__en-us_topic_0266335031_li3135751142619"><strong id="lts_api_0028__en-us_topic_0266335031_b10567191865617">LTS.0403</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row141341351182615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p213565162611">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p613555172617">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1013555120262">Error message.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p6135151162614">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul8135185116267"><li id="lts_api_0028__en-us_topic_0266335031_li41350514263"><strong id="lts_api_0028__en-us_topic_0266335031_b17722165811513">Invalid projectId</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p813685152611"><strong id="lts_api_0028__en-us_topic_0266335031_b1712312323526">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table3136051112611" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row913685182610"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p1913616513261">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p16136551192610">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p51361151112613">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row0136451102619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p111376513266">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p131371518261">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1613725192610">Error code.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p181374513262">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul013775172613"><li id="lts_api_0028__en-us_topic_0266335031_li213719512266"><strong id="lts_api_0028__en-us_topic_0266335031_b17407129185614">LTS.0403</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row1913665182617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p013705118263">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p8137195116266">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p1913865102616">Error message.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p0138951132616">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul8138175132614"><li id="lts_api_0028__en-us_topic_0266335031_li1013875132611"><strong id="lts_api_0028__en-us_topic_0266335031_b121913342560">Invalid projectId</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p1313812519262"><strong id="lts_api_0028__en-us_topic_0266335031_b48993635220">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table14138155152612" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row1313835120265"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p14139145110269">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.10.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p4139951192612">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.10.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p613995182617">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row17138951142618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p14139851192611">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1313912511263">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p21395514264">Error code.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p513905120266">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul9139125142610"><li id="lts_api_0028__en-us_topic_0266335031_li113915519261"><strong id="lts_api_0028__en-us_topic_0266335031_b11232154012567">LTS.0403</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row171388514261"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p101402051122618">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.10.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p5140851202619">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.10.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p3241251172613">Error message.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p19242165116263">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul102421451122613"><li id="lts_api_0028__en-us_topic_0266335031_li1624235112269"><strong id="lts_api_0028__en-us_topic_0266335031_b57761142115611">Invalid projectId</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p152421751182617"><strong id="lts_api_0028__en-us_topic_0266335031_b562573917520">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table16141651182611" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row18141751152611"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.12.2.4.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p224217515269">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.12.2.4.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p2242175111261">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.12.2.4.1.3"><p id="lts_api_0028__en-us_topic_0266335031_p13242205112618">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row18141185113265"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p82421514268">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p192421451192612">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.12.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p02421451102619">Error code.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p172421515261">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul6242145152613"><li id="lts_api_0028__en-us_topic_0266335031_li424295142612"><strong id="lts_api_0028__en-us_topic_0266335031_b1915144945618">LTS.0403</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row3141951112618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.4.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p1824255152614">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.12.2.4.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p024219513262">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.12.2.4.1.3 "><p id="lts_api_0028__en-us_topic_0266335031_p182421511265">Error message.</p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p424275114261">Enumerated value:</p>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul0242145112619"><li id="lts_api_0028__en-us_topic_0266335031_li17242185118263"><strong id="lts_api_0028__en-us_topic_0266335031_b12297135935116">Invalid projectId</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section960093282812"><h4 class="sectiontitle">Example Request</h4><p id="lts_api_0028__en-us_topic_0266335031_p1657144015205">Log details:</p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen4367164223">2020-07-25/14:44:42 this log is Error NO 1
|
|
2020-07-25/14:44:43 this log is Error NO 2
|
|
2020-07-25/14:44:44 this log is Error NO 3
|
|
2020-07-25/14:44:45 this log is Error NO 4
|
|
2020-07-25/14:44:46 this log is Error NO 5
|
|
2020-07-25/14:44:47 this log is Error NO 6
|
|
2020-07-25/14:44:48 this log is Error NO 7
|
|
2020-07-25/14:44:49 this log is Error NO 8
|
|
2020-07-25/14:44:50 this log is Error NO 9
|
|
2020-07-25/14:44:51 this log is Error NO 10</pre>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p62206451227"></p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen71406193220">POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query </pre>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul159301293328"><li id="lts_api_0028__en-us_topic_0266335031_li1093017993210">For the first query:<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen7600103214283">v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
|
|
{
|
|
"start_time": 1595659200000,
|
|
"end_time": 1595659500000,
|
|
"labels":
|
|
{
|
|
"hostName": "ecs-kwxtest"
|
|
},
|
|
"keywords": "log",
|
|
"limit": 10,
|
|
"is_count":true
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul164211844103314"><li id="lts_api_0028__en-us_topic_0266335031_li742134413319">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b189201818103512">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b490845215357">NO 6</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b4869654133520">NO 7</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b12291135715354">NO 8</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen457772153412">v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
|
|
{
|
|
"start_time": 1595659200000,
|
|
"end_time": 1595659500000,
|
|
"labels":
|
|
{
|
|
"hostName": "ecs-kwxtest"
|
|
},
|
|
"keywords": "log",
|
|
"line_num": "1595659490239433658",
|
|
"is_desc": "false",
|
|
"search_type": "forwards",
|
|
"limit": "3",
|
|
"is_count":true
|
|
}</pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li457342251916">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b132654466487">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b026584644818">NO 8</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b72651946174810">NO 7</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b526644612486">NO 6</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen13861435163414">{
|
|
"start_time": 1595659200000,
|
|
"end_time": 1595659500000,
|
|
"labels":
|
|
{
|
|
"hostName": "ecs-kwxtest"
|
|
},
|
|
"keywords": "log",
|
|
"line_num": "1595659490239433658",
|
|
"is_desc": "true",
|
|
"search_type": "backwards",
|
|
"limit": "3",
|
|
"is_count":true
|
|
}</pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li1760934043410">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b7930557164110">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b39301557134110">NO 2</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b893017578416">NO 3</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b79308573413">NO 4</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen16336161011350">v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
|
|
{
|
|
"start_time": 1595659200000,
|
|
"end_time": 1595659500000,
|
|
"labels":
|
|
{
|
|
"hostName": "ecs-kwxtest"
|
|
},
|
|
"keywords": "log",
|
|
"line_num": "1595659490239433658",
|
|
"is_desc": "false",
|
|
"search_type": "backwards",
|
|
"limit": "3",
|
|
"is_count":true
|
|
}</pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li1572420123519">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b756010911492">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b1956618918494">NO 4</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b12567597495">NO 3</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b1656712917495">NO 2</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen125282451357">v2/{project_id}/groups/{log_group_id}/streams/{log_stream_id}/content/query
|
|
{
|
|
"start_time": 1595659200000,
|
|
"end_time": 1595659500000,
|
|
"labels":
|
|
{
|
|
"hostName": "ecs-kwxtest"
|
|
},
|
|
"keywords": "log",
|
|
"line_num": "1595659490239433658",
|
|
"is_desc": "true",
|
|
"search_type": "forwards",
|
|
"limit": "3",
|
|
"is_count":true
|
|
}</pre>
|
|
</li></ul>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section4600103216284"><h4 class="sectiontitle">Example Response</h4><ul id="lts_api_0028__en-us_topic_0266335031_ul1415233323616"><li id="lts_api_0028__en-us_topic_0266335031_li14152183310363">For the first query:<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen146881137152514">{
|
|
"count": 32,
|
|
"logs": [
|
|
{
|
|
"content": "2020-07-25/14:44:42 this <HighLightTag>log</HighLightTag> is Error NO 1\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433654"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433655"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433656"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433657"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:46 this <HighLightTag>log</HighLightTag> is Error NO 5\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433658"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433659"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433660"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433661"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:50 this <HighLightTag>log</HighLightTag> is Error NO 9\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490839420574"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:51 this <HighLightTag>log</HighLightTag> is Error NO 10\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659491839412667"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="lts_api_0028__en-us_topic_0266335031_ul26517013405"><li id="lts_api_0028__en-us_topic_0266335031_li196511705406">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b1895145424811">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b2895754164814">NO 6</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b148951354104810">NO 7</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b19895195444815">NO 8</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen198199315404">{
|
|
"count": 32,
|
|
"logs": [
|
|
{
|
|
"content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433659"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433660"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433661"
|
|
}
|
|
]
|
|
} </pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li1665110154019">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b1164143975113">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b764112390514">NO 8</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b964113914512">NO 7</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b136414392512">NO 6</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen18840155324018">{
|
|
"count": 32,
|
|
"logs": [
|
|
{
|
|
"content": "2020-07-25/14:44:49 this <HighLightTag>log</HighLightTag> is Error NO 8\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433661"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:48 this <HighLightTag>log</HighLightTag> is Error NO 7\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433660"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:47 this <HighLightTag>log</HighLightTag> is Error NO 6\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433659"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li86511504400">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b1751733185213">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b65178314527">NO 2</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b12517333521">NO 3</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b1051813317528">NO 4</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen1865120134011">{
|
|
"count": 32,
|
|
"logs": [
|
|
{
|
|
"content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433655"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433656"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433657"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li><li id="lts_api_0028__en-us_topic_0266335031_li86521904402">For a pagination query (Assume that the search starts from the log event containing <strong id="lts_api_0028__en-us_topic_0266335031_b186011655195110">NO 5</strong> and the log events containing <strong id="lts_api_0028__en-us_topic_0266335031_b166011955155116">NO 4</strong>, <strong id="lts_api_0028__en-us_topic_0266335031_b1960135515514">NO 3</strong>, and <strong id="lts_api_0028__en-us_topic_0266335031_b196013554510">NO 2</strong> are the target log events):<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen36526012403">{
|
|
"count": 32,
|
|
"logs": [
|
|
{
|
|
"content": "2020-07-25/14:44:45 this <HighLightTag>log</HighLightTag> is Error NO 4\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433657"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:44 this <HighLightTag>log</HighLightTag> is Error NO 3\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433656"
|
|
},
|
|
{
|
|
"content": "2020-07-25/14:44:43 this <HighLightTag>log</HighLightTag> is Error NO 2\n",
|
|
"labels": {
|
|
"hostName": "ecs-kwxtest",
|
|
"hostIP": "192.168.0.156",
|
|
"appName": "default_appname",
|
|
"containerName": "CONFIG_FILE",
|
|
"clusterName": "CONFIG_FILE",
|
|
"hostId": "9787ef31-fd7b-4eff-ba71-72d580f11f55",
|
|
"podName": "default_procname",
|
|
"clusterId": "CONFIG_FILE",
|
|
"nameSpace": "CONFIG_FILE",
|
|
"category": "LTS"
|
|
},
|
|
"line_num": "1595659490239433655"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p87034316427"><strong id="lts_api_0028__en-us_topic_0266335031_b1589914182532">Status code: 400</strong></p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p270383111426">The request is invalid. Modify the request based on the description in <strong id="lts_api_0028__en-us_topic_0266335031_b4691162133710">error_msg</strong> before a retry.</p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen1970320311425">{
|
|
"error_code" : "LTS.0009",
|
|
"error_msg" : "Failed to validate the request body"
|
|
}</pre>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p167038318428"><strong id="lts_api_0028__en-us_topic_0266335031_b8297321175319">Status code: 401</strong></p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p10703193184220">Authentication failed. Check the token and try again.</p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen27031831144216">{
|
|
"error_code" : "LTS.0003",
|
|
"error_msg" : "Invalid token"
|
|
}</pre>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p157031731174215"><strong id="lts_api_0028__en-us_topic_0266335031_b146163236535">Status code: 403</strong></p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p77032313423">The server understood the request but refused to authorize it. The client should not repeat the request without modifications.</p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen19703431174215">{
|
|
"error_code" : "LTS.0001",
|
|
"error_msg" : "Invalid projectId"
|
|
}</pre>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p1570318318425"><strong id="lts_api_0028__en-us_topic_0266335031_b66511126185312">Status code: 500</strong></p>
|
|
<p id="lts_api_0028__en-us_topic_0266335031_p1170310318426">The server has received the request but encountered an internal error.</p>
|
|
<pre class="screen" id="lts_api_0028__en-us_topic_0266335031_screen070315316423">{
|
|
"error_code" : "LTS.0202",
|
|
"error_msg" : "Failed to query lts log"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section14849134911427"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_api_0028__en-us_topic_0266335031_table13644123124216" frame="border" border="1" rules="all"><thead align="left"><tr id="lts_api_0028__en-us_topic_0266335031_row197031231164220"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="lts_api_0028__en-us_topic_0266335031_p670314317425">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="lts_api_0028__en-us_topic_0266335031_p9703203134220">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="lts_api_0028__en-us_topic_0266335031_row14704231174214"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p970473116424">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p770410313428">The request is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row270433117422"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p1070413144219">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p10704731174212">The request is invalid. Modify the request based on the description in <strong id="lts_api_0028__en-us_topic_0266335031_b1057812863815">error_msg</strong> before a retry.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row17049313425"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p67045315424">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1070411317428">Authentication failed. Check the token and try again.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row187041631164214"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p9704163144210">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p15704133113420">The server understood the request but refused to authorize it. The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row5704831144213"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p6704631184220">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p11704123144216">The server has received the request but encountered an internal error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="lts_api_0028__en-us_topic_0266335031_row167047315425"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="lts_api_0028__en-us_topic_0266335031_p17704133114219">503</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="lts_api_0028__en-us_topic_0266335031_p1370416316428">The requested service is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="lts_api_0028__en-us_topic_0266335031_section12493165315425"><h4 class="sectiontitle">Error Codes</h4><p id="lts_api_0028__en-us_topic_0266335031_p670403174213">For details, see <a href="lts_02_0021.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_api_0029.html">Log Management</a></div>
|
|
</div>
|
|
</div>
|
|
|