doc-exports/docs/lts/umn/lts_04_0003.html
Liu, Siying 35cd899fe1 LTS UMN 20230609 version.
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>
2023-08-08 15:12:51 +00:00

32 lines
6.8 KiB
HTML

<a name="lts_04_0003"></a><a name="lts_04_0003"></a>
<h1 class="topictitle1">Managing Log Groups</h1>
<div id="body32001227"><p id="lts_04_0003__en-us_topic_0000001125775239_p5325173061518">A log group is a group of log streams. Up to 100 log groups can be created for a single account.</p>
<div class="section" id="lts_04_0003__en-us_topic_0000001125775239_se2459b5266d5409991b981d947d68462"><h4 class="sectiontitle">Creating a Log Group</h4><p id="lts_04_0003__en-us_topic_0000001125775239_p109619308468">Log groups can be created in two ways. They are automatically created when other services are connected to LTS, or you can create one manually by following the steps described here.</p>
<ol id="lts_04_0003__en-us_topic_0000001125775239_ol528295517373"><li id="lts_04_0003__en-us_topic_0000001125775239_li388862204110">Log in to the LTS console, choose <strong id="lts_04_0003__en-us_topic_0000001125775239_b196359251473">Log Management</strong> in the navigation pane on the left, and click <strong id="lts_04_0003__en-us_topic_0000001125775239_b364082514710">Create Log Group</strong> in the upper right corner.<div class="fignone" id="lts_04_0003__en-us_topic_0000001125775239_fig372194213719"><span class="figcap"><b>Figure 1 </b>Creating a log group</span><br><span><img id="lts_04_0003__en-us_topic_0000001125775239_image95697425717" src="en-us_image_0000001615509865.png"></span></div>
<p id="lts_04_0003__en-us_topic_0000001125775239_p1777144211711"></p>
</li><li id="lts_04_0003__en-us_topic_0000001125775239_li488139144520">In the dialog box displayed, enter a log group name. After a log group is created, its name cannot be changed. A log group name:<ul id="lts_04_0003__en-us_topic_0000001125775239_ul1541720124619"><li id="lts_04_0003__en-us_topic_0000001125775239_li1449201464">Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).</li><li id="lts_04_0003__en-us_topic_0000001125775239_li1152520161821">Cannot start with a period (.) or underscore (_) or end with a period (.).</li><li id="lts_04_0003__en-us_topic_0000001125775239_li114220204618">Can contain 1 to 64 characters.</li></ul>
<div class="note" id="lts_04_0003__en-us_topic_0000001125775239_note945514416454"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0003__en-us_topic_0000001125775239_p024714323303">Collected logs are sent to the log streams in the log group. If there are too many logs to collect, you are advised to separate logs into different log groups based on log types, and name log groups in an easily identifiable way.</p>
</div></div>
</li><li id="lts_04_0003__en-us_topic_0000001125775239_li1962826191917">Set <strong id="lts_04_0003__en-us_topic_0000001125775239_b137524177914">Log Retention Duration</strong>. You can set it to 1 to 30 days. If this parameter is not specified, logs are retained for 7 days by default.<div class="fignone" id="lts_04_0003__en-us_topic_0000001125775239_fig11962102615195"><span class="figcap"><b>Figure 2 </b>Creating a log group</span><br><span><img id="lts_04_0003__en-us_topic_0000001125775239_image10962112661920" src="en-us_image_0000001459614217.png"></span></div>
</li><li id="lts_04_0003__en-us_topic_0000001125775239_li16283185518373">Click <strong id="lts_04_0003__en-us_topic_0000001125775239_b197511022121713">OK</strong>.<ul id="lts_04_0003__en-us_topic_0000001125775239_ul20242237191115"><li id="lts_04_0003__en-us_topic_0000001125775239_li9377125581819">In the log group list, you can view details of log groups, including log group name, log retention duration (days), creation type, creation time, and number of log streams.</li><li id="lts_04_0003__en-us_topic_0000001125775239_li1252964241110">Click the log group name, the details page of one of its log streams is displayed.</li><li id="lts_04_0003__en-us_topic_0000001125775239_li1453216441291">When multiple log groups are created concurrently, there may be a limit exceeding error.</li></ul>
</li></ol>
</div>
<div class="section" id="lts_04_0003__en-us_topic_0000001125775239_section1571594316373"><h4 class="sectiontitle">Deleting a Log Group</h4><p id="lts_04_0003__en-us_topic_0000001125775239_p676517115314">You can delete a log group that is no longer needed. Deleting a log group will also delete the log streams and log data in the log group. Deleted log groups cannot be recovered. Exercise caution when performing the deletion.</p>
<div class="note" id="lts_04_0003__en-us_topic_0000001125775239_note49931510113217"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0003__en-us_topic_0000001125775239_p1799371063214">If you want to delete a log group that is associated with a log transfer task, delete the task first.</p>
</div></div>
<ol id="lts_04_0003__en-us_topic_0000001125775239_ol1946019329405"><li id="lts_04_0003__en-us_topic_0000001125775239_li124615324406">In the log group list on the <strong id="lts_04_0003__en-us_topic_0000001125775239_b1438893312243">Log Management</strong> page, locate the target log group and click <strong id="lts_04_0003__en-us_topic_0000001125775239_b838903314246">Delete</strong> in the <strong id="lts_04_0003__en-us_topic_0000001125775239_b13898334240">Operation</strong> column.</li><li id="lts_04_0003__en-us_topic_0000001125775239_li1275983414810">Enter <strong id="lts_04_0003__en-us_topic_0000001125775239_b6476185110180">DELETE</strong> and click <strong id="lts_04_0003__en-us_topic_0000001125775239_b1247755121812">OK</strong>.<div class="fignone" id="lts_04_0003__en-us_topic_0000001125775239_fig1175701920315"><span class="figcap"><b>Figure 3 </b>Deleting a log group</span><br><span><img id="lts_04_0003__en-us_topic_0000001125775239_image165531215143116" src="en-us_image_0000001409026272.png"></span></div>
</li></ol>
</div>
<div class="section" id="lts_04_0003__en-us_topic_0000001125775239_section1347363017535"><h4 class="sectiontitle">Searching Log Groups/Streams</h4><p id="lts_04_0003__en-us_topic_0000001125775239_p16879103511332">In the log group list, click the search box and set the following filter criteria:</p>
<ul id="lts_04_0003__en-us_topic_0000001125775239_ul688641193418"><li id="lts_04_0003__en-us_topic_0000001125775239_li48861611183413">Log group/stream</li><li id="lts_04_0003__en-us_topic_0000001125775239_li250792943411">Log group name/ID</li><li id="lts_04_0003__en-us_topic_0000001125775239_li75457428347">Log stream name/ID</li></ul>
<div class="fignone" id="lts_04_0003__en-us_topic_0000001125775239_fig63441237144814"><span class="figcap"><b>Figure 4 </b>Searching log groups/streams</span><br><span><img id="lts_04_0003__en-us_topic_0000001125775239_image7350203310481" src="en-us_image_0000001459871273.png"></span></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_1053.html">Log Management</a></div>
</div>
</div>