forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com>
36 lines
6.4 KiB
HTML
36 lines
6.4 KiB
HTML
<a name="cts_02_0003"></a><a name="cts_02_0003"></a>
|
|
|
|
<h1 class="topictitle1">Querying Archived Traces</h1>
|
|
<div id="body8662426"><div class="section" id="cts_02_0003__en-us_topic_0179639508_section1534311495828"><h4 class="sectiontitle">Scenarios</h4><p id="cts_02_0003__en-us_topic_0179639508_p1901988917341">CTS periodically sends trace files to OBS buckets. A trace file is a collection of traces. CTS generates trace files based on services and transfer cycle, and adjusts the number of traces contained in each trace file as needed.</p>
|
|
<p id="cts_02_0003__en-us_topic_0179639508_p2525842395828">This section describes how to obtain historical operation records from trace files downloaded from the OBS bucket.</p>
|
|
</div>
|
|
<div class="section" id="cts_02_0003__en-us_topic_0179639508_section18621912172323"><h4 class="sectiontitle">Prerequisites</h4><p id="cts_02_0003__en-us_topic_0179639508_p19610739172324">You have configured a tracker. For details, see <a href="cts_03_0002.html">Configuring a Tracker</a>.</p>
|
|
</div>
|
|
<div class="section" id="cts_02_0003__en-us_topic_0179639508_section4763421295828"><h4 class="sectiontitle">Procedure</h4><ol id="cts_02_0003__en-us_topic_0179639508_ol2707562395828"><li id="cts_02_0003__en-us_topic_0179639508_li618917495828">Log in to the management console.</li><li id="cts_02_0003__en-us_topic_0179639508_li5346313795828">Click <span><img id="cts_02_0003__en-us_topic_0179639508_image1045015451188" src="en-us_image_0000001232728979.png"></span> in the upper left corner and choose <strong id="cts_02_0003__en-us_topic_0179639508_b1743814131578">Management & Deployment</strong> > <strong id="cts_02_0003__en-us_topic_0179639508_b144506459814">Cloud Trace Service</strong>. The CTS console is displayed.</li><li id="cts_02_0003__en-us_topic_0179639508_li3441308995828">Choose <strong id="cts_02_0003__en-us_topic_0179639508_b1186114313014">Tracker List</strong> in the navigation pane on the left.</li><li id="cts_02_0003__en-us_topic_0179639508_li1617149695828">Click a bucket in the <strong id="cts_02_0003__en-us_topic_0179639508_b1785205217818">OBS Bucket</strong> column.<div class="fignone" id="cts_02_0003__en-us_topic_0179639508_fig971717479509"><span class="figcap"><b>Figure 1 </b>Selecting an OBS bucket</span><br><span><img id="cts_02_0003__en-us_topic_0179639508_image9718204715502" src="en-us_image_0000001467612717.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</li><li id="cts_02_0003__en-us_topic_0179639508_li5554945111133">In the OBS bucket, select the trace to be viewed based on the trace file storage path, and download the file to the default download path of the browser. If you need to save the event file to a custom path, click <strong id="cts_02_0003__en-us_topic_0179639508_b91151243155415">Download As</strong> on the right.<ul id="cts_02_0003__en-us_topic_0179639508_ul148190001162"><li id="cts_02_0003__en-us_topic_0179639508_li279919171162">The trace file storage path is as follows:<p id="cts_02_0003__en-us_topic_0179639508_p47428456155727"><a name="cts_02_0003__en-us_topic_0179639508_li279919171162"></a><a name="en-us_topic_0179639508_li279919171162"></a><strong id="cts_02_0003__en-us_topic_0179639508_b1121122891210"><em id="cts_02_0003__en-us_topic_0179639508_i1039932631211">OBS bucket name > CloudTraces > Region > Year > Month > Day > Tracker name > Service directory</em></strong></p>
|
|
<p id="cts_02_0003__en-us_topic_0179639508_p4663776495828">An example is <strong id="cts_02_0003__en-us_topic_0179639508_b126921336121310"><em id="cts_02_0003__en-us_topic_0179639508_i18364736121319">User-defined name > CloudTraces > region > 2016 > 5 > 19 > system > ECS</em></strong>.</p>
|
|
</li></ul>
|
|
<ul id="cts_02_0003__en-us_topic_0179639508_ul342885641165"><li id="cts_02_0003__en-us_topic_0179639508_li529846131165">The trace file naming format is as follows:<p id="cts_02_0003__en-us_topic_0179639508_p1621688895828"><a name="cts_02_0003__en-us_topic_0179639508_li529846131165"></a><a name="en-us_topic_0179639508_li529846131165"></a><strong id="cts_02_0003__en-us_topic_0179639508_b3493124141517"><em id="cts_02_0003__en-us_topic_0179639508_i12115114113152">Trace file prefix_CloudTrace_Region/Region-project_Time when the trace file was uploaded to OBS: Year-Month-DayTHour-Minute-SecondZ_Random characters.json.gz</em></strong></p>
|
|
<p id="cts_02_0003__en-us_topic_0179639508_p577818395828">An example is <em id="cts_02_0003__en-us_topic_0179639508_i449391271613"><strong id="cts_02_0003__en-us_topic_0179639508_b9493612131610">File Prefix</strong></em><strong id="cts_02_0003__en-us_topic_0179639508_b849381216160">_CloudTrace_region-project_2016-05-30T16-20-56Z_21d36ced8c8af71e.json.gz</strong>.</p>
|
|
</li></ul>
|
|
<div class="note" id="cts_02_0003__en-us_topic_0179639508_note4679381511655"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="cts_02_0003__en-us_topic_0179639508_p564014491176">The OBS bucket name and trace file prefix are user-defined, and other parameters are automatically generated.</p>
|
|
</div></div>
|
|
<p id="cts_02_0003__en-us_topic_0179639508_p1590129142913">For details about key fields in the CTS trace structure, see <a href="cts_03_0010.html">Trace Structure</a> and <a href="cts_03_0011.html">Example Traces</a>.</p>
|
|
<div class="fignone" id="cts_02_0003__en-us_topic_0179639508_fig67924624816"><span class="figcap"><b>Figure 2 </b>Viewing trace file content</span><br><span><img id="cts_02_0003__en-us_topic_0179639508_image579194654810" src="en-us_image_0000001410476944.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</li><li id="cts_02_0003__en-us_topic_0179639508_li60299728173928">Decompress the downloaded package to obtain a JSON file with the same name as the package. Open the JSON file using a text file editor to view traces.<div class="fignone" id="cts_02_0003__en-us_topic_0179639508_fig17496885104024"><span class="figcap"><b>Figure 3 </b>JSON file</span><br><span><img id="cts_02_0003__en-us_topic_0179639508_image7961553104024" src="en-us_image_0296237505.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0030581457.html">Getting Started</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |