Compare commits

...

1 Commits

Author SHA1 Message Date
“jiayuying”
578ab3e33e LTS UMN 0929 2022-09-29 19:11:06 +08:00
70 changed files with 1724 additions and 0 deletions

File diff suppressed because it is too large Load Diff

236
docs/lts/umn/CLASS.TXT.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
version=""
language="en-us"
type=""

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,17 @@
<a name="lts_01_0001"></a><a name="lts_01_0001"></a>
<h1 class="topictitle1">Service Overview</h1>
<div id="body1585207816701"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_01_0002.html">Introduction</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_01_0003.html">Basic Concepts</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_01_0004.html">Basic Functions</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_01_0005.html">Related Services</a></strong><br>
</li>
</ul>
</div>

View File

@ -0,0 +1,12 @@
<a name="lts_01_0002"></a><a name="lts_01_0002"></a>
<h1 class="topictitle1">Introduction</h1>
<div id="body32001227"><p id="lts_01_0002__en-us_topic_0180791964_p108692126170">Log Tank Service (LTS) enables you to collect logs from hosts and cloud services for centralized management, and analyze large volumes of logs efficiently, securely, and in real time. LTS provides you with the insights for optimizing the availability and performance of cloud services and applications. It allows you to make faster data-driven decisions, perform device O&amp;M with ease, and analyze service trends.</p>
<div class="fignone" id="lts_01_0002__en-us_topic_0180791964_fig201805655218"><span class="figcap"><b>Figure 1 </b>How LTS works</span><br><span><img id="lts_01_0002__en-us_topic_0180791964_image81712478299" src="en-us_image_0000001190616042.png"></span></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0001.html">Service Overview</a></div>
</div>
</div>

View File

@ -0,0 +1,17 @@
<a name="lts_01_0003"></a><a name="lts_01_0003"></a>
<h1 class="topictitle1">Basic Concepts</h1>
<div id="body32001227"><div class="section" id="lts_01_0003__en-us_topic_0293241937_section153271638165116"><h4 class="sectiontitle">Log Groups</h4><p id="lts_01_0003__en-us_topic_0293241937_p1861019247204">A log group is the basic unit for LTS to manage logs. You can query and transfer logs in log groups. Up to 100 log groups can be created in your account.</p>
</div>
<div class="section" id="lts_01_0003__en-us_topic_0293241937_section13775650103317"><h4 class="sectiontitle">Log Streams</h4><p id="lts_01_0003__en-us_topic_0293241937_p6919195735116">Up to 100 streams can be created in a log group.</p>
<p id="lts_01_0003__en-us_topic_0293241937_p0138145116581">You can separate logs into different log streams based on log types, and name log streams in an easily identifiable way. This helps you quickly find your desired logs.</p>
</div>
<div class="section" id="lts_01_0003__en-us_topic_0293241937_section19224193115371"><h4 class="sectiontitle">ICAgent</h4><p id="lts_01_0003__en-us_topic_0293241937_p185461566374">ICAgent is the log collection tool of LTS. If you want to use LTS to collect logs from a host, you need to install ICAgent on the host. Batch ICAgent installation is supported if you want to collect logs from multiple hosts. After ICAgent installation, you can check the ICAgent status on the LTS console in real time.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0001.html">Service Overview</a></div>
</div>
</div>

View File

@ -0,0 +1,16 @@
<a name="lts_01_0004"></a><a name="lts_01_0004"></a>
<h1 class="topictitle1">Basic Functions</h1>
<div id="body32001227"><div class="section" id="lts_01_0004__en-us_topic_0180792001_section750882984211"><h4 class="sectiontitle">Real-time Log Collection</h4><p id="lts_01_0004__en-us_topic_0180792001_p1115764692813">You can view real-time logs to keep track of the status of the services connected to LTS. You can also check logs in the last 7 days.</p>
</div>
<div class="section" id="lts_01_0004__en-us_topic_0180792001_section1768613371064"><h4 class="sectiontitle">Log Query and Real-Time Analysis</h4><p id="lts_01_0004__en-us_topic_0180792001_p9186164101415">You can set search criteria to filter reported logs for fault diagnosis and system tracking. This enables easier device O&amp;M and service trend analysis.</p>
</div>
<div class="section" id="lts_01_0004__en-us_topic_0180792001_section1818593510523"><h4 class="sectiontitle">Log Transfer</h4><p id="lts_01_0004__en-us_topic_0180792001_p11218738145217">Reported logs are retained in LTS for 7 days by default. Retained logs are deleted once the period is over. For long-term storage, you can transfer logs to Object Storage Service (OBS) buckets.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0001.html">Service Overview</a></div>
</div>
</div>

View File

@ -0,0 +1,22 @@
<a name="lts_01_0005"></a><a name="lts_01_0005"></a>
<h1 class="topictitle1">Related Services</h1>
<div id="body32001227"><div class="section" id="lts_01_0005__en-us_topic_0180792064_section1064613521526"><h4 class="sectiontitle">VPC</h4><p id="lts_01_0005__en-us_topic_0180792064_p949585417525">LTS provides a platform to store and analyze log data for Virtual Private Cloud (VPC). After VPC is associated with a log group and log stream in LTS, Network Interface Cards (NICs) logs are uploaded to LTS for preview, search, and storage.</p>
</div>
<div class="section" id="lts_01_0005__en-us_topic_0180792064_section56761229165019"><h4 class="sectiontitle">OBS</h4><p id="lts_01_0005__en-us_topic_0180792064_p3697165515502">Object Storage Service (OBS) is an object-based massive storage service. Logs can be transferred to OBS buckets for long-term storage.</p>
</div>
<div class="section" id="lts_01_0005__en-us_topic_0180792064_section178961375117"><h4 class="sectiontitle">IAM</h4><p id="lts_01_0005__en-us_topic_0180792064_p8779113105118">Identity and Access Management (IAM) provides identity authentication and permissions management. LTS calls IAM APIs to obtain administrator permissions for log management.</p>
</div>
<div class="section" id="lts_01_0005__en-us_topic_0180792064_section1199510402815"><h4 class="sectiontitle">CTS</h4><p style="color:#000000;" id="lts_01_0005__en-us_topic_0180792064_p4653772118222">If you enable <strong id="lts_01_0005__en-us_topic_0180792064_b1992094325219">Trace Analysis</strong> for a tracker in Cloud Trace Service (CTS), traces recorded by the tracker will be synchronized to LTS. You can then set custom filters to search for traces generated in the last 7 days in LTS.</p>
</div>
<div class="section" id="lts_01_0005__en-us_topic_0180792064_section451133362211"><h4 class="sectiontitle">WAF</h4><p id="lts_01_0005__en-us_topic_0180792064_p056895992413">You can record attack logs and access logs of Web Application Firewall (WAF) in LTS, and use the logs for real-time decision-making, device O&amp;M, and service trend analysis.</p>
</div>
<div class="section" id="lts_01_0005__en-us_topic_0180792064_section153212472519"><h4 class="sectiontitle">ELB</h4><p id="lts_01_0005__en-us_topic_0180792064_p471393215255">You can ingest access logs of Elastic Load Balance (ELB) to a log stream of a log group in LTS. Then you can check the access logs for details on HTTP and HTTPS requests sent to your load balancer and perform log analysis.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0001.html">Service Overview</a></div>
</div>
</div>

View File

@ -0,0 +1,13 @@
<a name="lts_01_0008"></a><a name="lts_01_0008"></a>
<h1 class="topictitle1">Getting Started</h1>
<div id="body32001227"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_01_0009.html">Configuring the VPC Flow Log Function</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_01_0010.html">Configuring CTS to Upload Traces to LTS</a></strong><br>
</li>
</ul>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
<a name="lts_01_0010"></a><a name="lts_01_0010"></a>
<h1 class="topictitle1">Configuring CTS to Upload Traces to LTS</h1>
<div id="body32001227"><div class="section" id="lts_01_0010__en-us_topic_0224007630_section12968185213249"><h4 class="sectiontitle">Scenarios</h4><p id="lts_01_0010__en-us_topic_0224007630_p4106195171315">This section describes how to enable trace analysis on the Cloud Trace Service (CTS) console to report traces to LTS, so you can query the traces on the LTS console.</p>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section950534918297"><h4 class="sectiontitle">Operation process</h4><div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig1610211279519"><a name="lts_01_0010__en-us_topic_0224007630_fig1610211279519"></a><a name="en-us_topic_0224007630_fig1610211279519"></a><span class="figcap"><b>Figure 1 </b>Flowchart</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image1332616328163" src="en-us_image_0224007675.png"></span></div>
<p id="lts_01_0010__en-us_topic_0224007630_p3764849575">Operations in <a href="#lts_01_0010__en-us_topic_0224007630_fig1610211279519">Figure 1</a> are performed on different consoles:</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol541664918814"><li id="lts_01_0010__en-us_topic_0224007630_li241618492084">CTS console: Enabling CTS and creating and configuring a tracker</li></ol><ol start="2" id="lts_01_0010__en-us_topic_0224007630_ol195421511581"><li id="lts_01_0010__en-us_topic_0224007630_li175429512813">LTS console: Viewing traces reported by CTS</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section854510497218"><h4 class="sectiontitle">Enabling CTS</h4><p id="lts_01_0010__en-us_topic_0224007630_p15484164817718">You can perform the following operations to enable CTS and create a tracker.</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol17875712152213"><li id="lts_01_0010__en-us_topic_0224007630_ldd0da3796d894d709d13ffdbc6c4a47d">Log in to the management console.</li><li id="lts_01_0010__en-us_topic_0224007630_l0952ff92679e484db23115ae0703a3e5">In the upper left corner of the management console, select the target region and project.</li><li id="lts_01_0010__en-us_topic_0224007630_li869318241235">Click <strong id="lts_01_0010__en-us_topic_0224007630_b15671013121918">Service List</strong> and choose <strong id="lts_01_0010__en-us_topic_0224007630_b1226392020191">Management &amp; Deployment</strong> &gt; <strong id="lts_01_0010__en-us_topic_0224007630_b6882823151915">Cloud Trace Service</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li4976123681020">In the navigation pane on the left, choose <strong id="lts_01_0010__en-us_topic_0224007630_b84235270695459">Tracker</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li11161755111016">On the <strong id="lts_01_0010__en-us_topic_0224007630_b93036455193">Tracker</strong> page, click <strong id="lts_01_0010__en-us_topic_0224007630_b195383484197">Enable CTS</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_li92575017136">On the displayed page, set <strong id="lts_01_0010__en-us_topic_0224007630_b1012831252613">OBS Bucket</strong>.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig1421850121313"><span class="figcap"><b>Figure 2 </b>Enabling CTS</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image8607638182015" src="en-us_image_0224007681.png"></span></div>
</li><li id="lts_01_0010__en-us_topic_0224007630_li13882141242211">Click <strong id="lts_01_0010__en-us_topic_0224007630_b84235270619330">OK</strong>.<p id="lts_01_0010__en-us_topic_0224007630_p2693559756">After you enable CTS, tracker <strong id="lts_01_0010__en-us_topic_0224007630_b16631546202110">system</strong> is automatically created. All recorded traces are associated with the tracker.</p>
<p id="lts_01_0010__en-us_topic_0224007630_p0904162115515">Currently, only one tracker can be created for each account.</p>
</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section4285185832114"><h4 class="sectiontitle">Configuring the Tracker</h4><p id="lts_01_0010__en-us_topic_0224007630_p1596916412818">You can perform the following operations to enable the trace analysis function, thus reporting CTS traces to LTS.</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol182182023112216"><li id="lts_01_0010__en-us_topic_0224007630_li9558132671910">On the <strong id="lts_01_0010__en-us_topic_0224007630_b676413413237">Tracker</strong> page, click <strong id="lts_01_0010__en-us_topic_0224007630_b208863391237">Configure</strong> in the <strong id="lts_01_0010__en-us_topic_0224007630_b7544174362313">Operation</strong> column.<p id="lts_01_0010__en-us_topic_0224007630_p845211328715">The <strong id="lts_01_0010__en-us_topic_0224007630_b84235270695757">Configure Tracker</strong> page is displayed.</p>
</li><li id="lts_01_0010__en-us_topic_0224007630_li438723316193">On the displayed page, enable <strong id="lts_01_0010__en-us_topic_0224007630_b1048541811248">Trace Analysis</strong>.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_fig11639164020205"><span class="figcap"><b>Figure 3 </b>Configuring a tracker</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_image1022701472315" src="en-us_image_0224007684.png"></span></div>
<div class="note" id="lts_01_0010__en-us_topic_0224007630_note1147751162414"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_01_0010__en-us_topic_0224007630_p9906165512714">During CTS trace reporting, the system automatically creates a log group and a log topic on the LTS console.</p>
</div></div>
</li><li id="lts_01_0010__en-us_topic_0224007630_li12221223152216">Click <strong id="lts_01_0010__en-us_topic_0224007630_b8152448105410">OK</strong>.</li></ol>
</div>
<div class="section" id="lts_01_0010__en-us_topic_0224007630_section78767354224"><h4 class="sectiontitle">Viewing Logs in Real Time</h4><p id="lts_01_0010__en-us_topic_0224007630_p3438154021210">You can perform the following operations to view logs reported by CTS:</p>
<ol id="lts_01_0010__en-us_topic_0224007630_ol179119110336"><li id="lts_01_0010__en-us_topic_0224007630_l658c36a668b2430b9628c35479cb9e0b">Click <strong id="lts_01_0010__en-us_topic_0224007630_b14580201916312">Service List</strong> and choose <strong id="lts_01_0010__en-us_topic_0224007630_b18580131963115">Management &amp; Deployment</strong> &gt; <strong id="lts_01_0010__en-us_topic_0224007630_b958201993112">Log Tank Service</strong>.</li><li id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_li217314910">In the log group list, click the name of the target log group.</li><li id="lts_01_0010__en-us_topic_0224007630_lb3dae1021c3b4b139a6b62e3d112472b">In the log topic list, locate the target log topic and click <strong id="lts_01_0010__en-us_topic_0224007630_b207544321526">View</strong> in the <strong id="lts_01_0010__en-us_topic_0224007630_b1075416327220">Operation</strong> column.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_fig899148804"><span class="figcap"><b>Figure 4 </b>Viewing logs in real time</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_i59c071da2d544202acccfc99a55785a1" src="en-us_image_0224007615.png"></span></div>
<p id="lts_01_0010__en-us_topic_0224007630_aac1f4a98600a4bbab72fb71c7ab36713">Logs are reported to LTS every 10 minutes. In the log display area, you may wait for at most 10 minutes to view the logs.</p>
<div class="p" id="lts_01_0010__en-us_topic_0224007630_a8c997e4687e14f22893db2a657ed0d31">In addition, you can customize log display by clicking <strong id="lts_01_0010__en-us_topic_0224007630_b969843713210">Clear</strong>, <strong id="lts_01_0010__en-us_topic_0224007630_b3699337524">Pause</strong>, or <strong id="lts_01_0010__en-us_topic_0224007630_b1270133711216">Close</strong> in the upper right corner.<div class="fignone" id="lts_01_0010__en-us_topic_0224007630_f70fd176b41654fdc9418b3c38790c89c"><span class="figcap"><b>Figure 5 </b>Log display area</span><br><span><img id="lts_01_0010__en-us_topic_0224007630_i33ef04ada55b403cb09b2c395bc32a97" src="en-us_image_0224007642.png"></span></div>
<ul id="lts_01_0010__en-us_topic_0224007630_u1e01305011b548de84a66b50395147f2"><li id="lts_01_0010__en-us_topic_0224007630_l90bfdce9047a4126bf768d50baa222b1"><strong id="lts_01_0010__en-us_topic_0224007630_b17474739624">Clear</strong>: clears all logs that are displayed in the log display area.</li><li id="lts_01_0010__en-us_topic_0224007630_en-us_topic_0154611272_li74162916153"><strong id="lts_01_0010__en-us_topic_0224007630_b26649400213">Pause</strong>: pauses the real-time log display so that you can view details of the displayed logs.<p id="lts_01_0010__en-us_topic_0224007630_ab496b3dd594e48249b5b127cea5915cd">After you click <strong id="lts_01_0010__en-us_topic_0224007630_b78514412022">Pause</strong>, the button changes to <strong id="lts_01_0010__en-us_topic_0224007630_b12851204110219">Continue</strong>. You can click <strong id="lts_01_0010__en-us_topic_0224007630_b118528411522">Continue</strong> to resume the log display.</p>
</li><li id="lts_01_0010__en-us_topic_0224007630_l37e39c86ae604eec8b80d0c9ae292161"><strong id="lts_01_0010__en-us_topic_0224007630_b14071343229">Close</strong>: closes the real-time log view page. You are redirected to the <strong id="lts_01_0010__en-us_topic_0224007630_b10408154317213">Log Topic List </strong>page.</li></ul>
</div>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_01_0008.html">Getting Started</a></div>
</div>
</div>

View File

@ -0,0 +1,81 @@
<a name="lts_01_0033"></a><a name="lts_01_0033"></a>
<h1 class="topictitle1">Change History</h1>
<div id="body32001227">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_table9493817125112" frame="border" border="1" rules="all"><thead align="left"><tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row1497117195119"><th align="left" class="cellrowborder" valign="top" width="25.06%" id="mcps1.3.1.1.3.1.1"><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1498131735112">Released On</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="74.94%" id="mcps1.3.1.1.3.1.2"><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p4500317135113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_01_0033__en-us_topic_0178020368_row149291792917"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_p7493517162911">2022-09-02</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_p144931717152920">The modification is as follows:</p>
<ul id="lts_01_0033__en-us_topic_0178020368_ul4860220113014"><li id="lts_01_0033__en-us_topic_0178020368_li586011206305">Modified description of restrictions in section "Managing Log Groups."</li><li id="lts_01_0033__en-us_topic_0178020368_li175607133119">Modified description of restrictions in section "Managing Log Streams."</li><li id="lts_01_0033__en-us_topic_0178020368_li328264161414">Modified description of restrictions in section "Quick Search."</li></ul>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_row793313213265"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_p12934127268">2021-01-25</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_p5420150194512">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_p164206503453">Updated descriptions of initial installation in section "Installing ICAgent".</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row1540160124917"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p14541500491">2020-09-03</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1954115017492">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p29369131499">Adjusted the document structure and content based on console changes.</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row79523119302"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1595310116300">2019-11-26</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1195312119300">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1692063419301">Added supported ECS types in section "Configuring the VPC Flow Log Function".</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row53611733132017"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p7362173302012">2019-08-07</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p12413242192413">The modifications are as follows:</p>
<ul id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_ul185876326168"><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li1358713324164">Added descriptions of how to disable or modify log subscriptions in section "Log Subscription".</li><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li165872328166">Added descriptions of access keys in section "Log Subscription".</li></ul>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row9429769174"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1177181311713">2019-05-23</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p12426123312179">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p38454508173">Added descriptions of how to enable and disable the search function in section "Searching for Logs by Keyword".</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row5360734171610"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p8361143441615">2019-05-09</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p936173471610">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p53751937131710">Accepted in OTC-4.0/Agile-06.2019</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row4722114224414"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p972311423448">2019-04-30</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p28493397498">The modifications are as follows:</p>
<ul id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_ul570725819496"><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li4607257415644">Each user can create up to 100 log groups.</li><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li2848702815653">Up to 100 log streams can be created in a log group.</li><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li18149334185810">Optimized descriptions in section "Searching for Logs by Keyword".</li></ul>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row1880912502484"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p17811205034820">2019-04-12</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p128111350124818">The modifications are as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p161719584587">Updated descriptions in section "Searching for Logs by Keyword".</p>
<ol id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_ol144311991599"><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li243214935914">Optimized the examples of fuzzy search.</li><li id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_li19432149105914">Optimized the format of key-value pairs. The keys include <strong id="lts_01_0033__en-us_topic_0178020368_b107668491952">host_name:</strong>, <strong id="lts_01_0033__en-us_topic_0178020368_b133431752754">ip:</strong>, <strong id="lts_01_0033__en-us_topic_0178020368_b414355353">path:</strong>, and <strong id="lts_01_0033__en-us_topic_0178020368_b17845155818511">time:</strong>.</li></ol>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row467312214114"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p8673192120115">2019-02-22</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p1240492017">The modification is as follows:</p>
<p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p467322110113">Updated descriptions and screenshots in section "Configuring the VPC Flow Log Function".</p>
</td>
</tr>
<tr id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_row175021717105114"><td class="cellrowborder" valign="top" width="25.06%" headers="mcps1.3.1.1.3.1.1 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p4504141745119">2019-02-15</p>
</td>
<td class="cellrowborder" valign="top" width="74.94%" headers="mcps1.3.1.1.3.1.2 "><p id="lts_01_0033__en-us_topic_0178020368_en-us_topic_0233761086_p125063177515">This issue is the first official release.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@ -0,0 +1,76 @@
<a name="lts_02_0013"></a><a name="lts_02_0013"></a>
<h1 class="topictitle1">Installing ICAgent (Linux)</h1>
<div id="body32001227"><p id="lts_02_0013__en-us_topic_0178700394_p1939405617147">ICAgent is a log collection tool for LTS. If you use LTS to collect logs from a host running Linux OS, you need to install ICAgent on the host.</p>
<div class="section" id="lts_02_0013__en-us_topic_0178700394_section789175015231"><h4 class="sectiontitle">Prerequisites</h4><p id="lts_02_0013__en-us_topic_0178700394_p59511511971">Ensure that the time and time zone of your local browser are consistent with those of the host to install ICAgent. If they are inconsistent, errors may occur during log reporting.</p>
</div>
<div class="section" id="lts_02_0013__en-us_topic_0178700394_s92be8217a4424177900b3c3ee8e18252"><h4 class="sectiontitle">Installation Methods</h4><p id="lts_02_0013__en-us_topic_0178700394_aa403d044da9b4f0782449744b0044b7f">There are two methods to install ICAgent.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_02_0013__en-us_topic_0178700394_tb05ee4f9586147febd916e12635ec479" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Installation methods</caption><thead align="left"><tr id="lts_02_0013__en-us_topic_0178700394_rfadec82993774eecad4045fd0084a7e3"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.3.1.1"><p id="lts_02_0013__en-us_topic_0178700394_a108f75632f5442ca8d434a5b21f60dba">Method</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="80%" id="mcps1.3.3.3.2.3.1.2"><p id="lts_02_0013__en-us_topic_0178700394_a392e44500cc54b1ab0ea6c2ae6df47be">Scenario</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_02_0013__en-us_topic_0178700394_r94b3003724fe4c8085af2b7c38fcc3ca"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_02_0013__en-us_topic_0178700394_ac918cd34d30b409eb786d88d38b0110d">Initial installation</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_02_0013__en-us_topic_0178700394_p10166415194">You can use this method to install ICAgent on a host that has no ICAgent installed.</p>
</td>
</tr>
<tr id="lts_02_0013__en-us_topic_0178700394_r90456dcb4d0e495599323b6436471e4d"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_02_0013__en-us_topic_0178700394_aac5aa7d6f2dd414a826151678794b8e6">Inherited installation</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_02_0013__en-us_topic_0178700394_p15476129183820">When ICAgent has already been installed on one host but needs to be installed on multiple hosts, you can use this method.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="lts_02_0013__en-us_topic_0178700394_s3394edd5be6c4368ae172df353efb555"><h4 class="sectiontitle">Initial Installation</h4><ol id="lts_02_0013__en-us_topic_0178700394_ol152431452422"><li id="lts_02_0013__en-us_topic_0178700394_li1224313529217"><span>Log in to the LTS console and choose <strong id="lts_02_0013__en-us_topic_0178700394_b15988712174214">Agent Management</strong> in the navigation pane on the left.</span></li><li id="lts_02_0013__en-us_topic_0178700394_li72431152324"><span>Click <strong id="lts_02_0013__en-us_topic_0178700394_b11880831114215">Install ICAgent</strong>.</span><p><p id="lts_02_0013__en-us_topic_0178700394_p578464071415"><span><img id="lts_02_0013__en-us_topic_0178700394_image12553184210142" src="en-us_image_0000001368172808.png"></span></p>
</p></li><li id="lts_02_0013__en-us_topic_0178700394_li18243452020"><span>Select an installation mode:</span><p><ul id="lts_02_0013__en-us_topic_0178700394_ul179362631316"><li id="lts_02_0013__en-us_topic_0178700394_li2129554162411"><strong id="lts_02_0013__en-us_topic_0178700394_b10985181564920">Obtain AK/SK</strong>. For details, see <a href="lts_03_0015.html#lts_03_0015">How Do I Obtain an AK/SK Pair?</a><div class="note" id="lts_02_0013__en-us_topic_0178700394_note1489792711292"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0013__en-us_topic_0178700394_p138998272295">If the AK/SK pair expires or is deleted, the ICAgent status may become abnormal. In this case, create an AK/SK pair and generate a new installation command. Log in to the host and run the command to reinstall ICAgent.</p>
</div></div>
</li><li id="lts_02_0013__en-us_topic_0178700394_li9493111910267"><strong id="lts_02_0013__en-us_topic_0178700394_b1513413335521">Create an agency</strong>. For details, see <a href="lts_03_0002.html#lts_03_0002">How Do I Install ICAgent by Creating an Agency?</a></li></ul>
</p></li><li id="lts_02_0013__en-us_topic_0178700394_li924317526217"><span>Click <strong id="lts_02_0013__en-us_topic_0178700394_b1533912274414">Copy Command</strong> to copy the ICAgent installation command.</span></li><li id="lts_02_0013__en-us_topic_0178700394_li102431252823"><span>Log in as user <strong id="lts_02_0013__en-us_topic_0178700394_b1125724374113">root</strong> to the host which is deployed in the region same as that you are logged in to (for example, by using a remote login tool such as PuTTY) and run the copied command. If you have chosen <strong id="lts_02_0013__en-us_topic_0178700394_b1030234810551">Obtain AK/SK</strong> as the installation mode, enter the AK/SK pair as prompted.</span><p><div class="note" id="lts_02_0013__en-us_topic_0178700394_en-us_topic_0089582074_en-us_topic_0089684077_en-us_topic_0089582074_note156388216211"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0013__en-us_topic_0178700394_en-us_topic_0089582074_en-us_topic_0089684077_en-us_topic_0089582074_ul1263815212116"><li id="lts_02_0013__en-us_topic_0178700394_en-us_topic_0089582074_en-us_topic_0089684077_li56510264111129">When the message <strong id="lts_02_0013__en-us_topic_0178700394_b62441546132011">ICAgent install success</strong> is displayed, ICAgent has been installed in the <strong id="lts_02_0013__en-us_topic_0178700394_b824911464202">/opt/oss/servicemgr/</strong> directory of the host. You can then view the ICAgent status on the <strong id="lts_02_0013__en-us_topic_0178700394_b158911050142010">Agent Management</strong> page of the LTS console.</li><li id="lts_02_0013__en-us_topic_0178700394_en-us_topic_0089582074_en-us_topic_0089684077_en-us_topic_0089582074_li156389210217">If the installation fails, uninstall ICAgent and reinstall it. If reinstallation fails, contact technical support.</li></ul>
</div></div>
</p></li></ol>
</div>
<div class="section" id="lts_02_0013__en-us_topic_0178700394_s67a66a0bf8bd417e9e71342699bb2b7e"><h4 class="sectiontitle">Inherited Installation</h4><p id="lts_02_0013__en-us_topic_0178700394_p1198432234119">Let's assume that you need to install ICAgent on multiple hosts, and one of the hosts already has ICAgent installed. The ICAgent installation package, <strong id="lts_02_0013__en-us_topic_0178700394_b454419273610">ICProbeAgent.tar.gz</strong>, is in the <strong id="lts_02_0013__en-us_topic_0178700394_b1354910271564">/opt/ICAgent/</strong> directory. You can follow the directions below to install ICAgent on other hosts one by one.</p>
<ol id="lts_02_0013__en-us_topic_0178700394_ol11527143213103"><li id="lts_02_0013__en-us_topic_0178700394_li95279327104">Run the following command on the host where ICAgent has been installed, where <em id="lts_02_0013__en-us_topic_0178700394_i74521150762">x.x.x.x</em> is the IP address of the host you want to install ICAgent on.<p id="lts_02_0013__en-us_topic_0178700394_p76862011143"><strong id="lts_02_0013__en-us_topic_0178700394_b046751013215">bash /opt/oss/servicemgr/ICAgent/bin/remoteInstall/remote_install.sh -ip</strong> <em id="lts_02_0013__en-us_topic_0178700394_i5372111920913">x.x.x.x</em></p>
</li><li id="lts_02_0013__en-us_topic_0178700394_li1552773261011">Enter the password for user <strong id="lts_02_0013__en-us_topic_0178700394_b1823016559127">root</strong> of the host when prompted.<div class="note" id="lts_02_0013__en-us_topic_0178700394_n3aea1189f6d246de8911a6322bd2a524"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0013__en-us_topic_0178700394_u6f9e3db12f3f4d75b2e663cb7f4d06da"><li id="lts_02_0013__en-us_topic_0178700394_l351da4f648e44401900e186e639180ea">If the Expect tool is installed on the host that has ICAgent installed, the ICAgent installation should be able to complete without prompting you for a password.</li><li id="lts_02_0013__en-us_topic_0178700394_l47fab8e50e6a4083af982889cf53b931">Ensure that user <strong id="lts_02_0013__en-us_topic_0178700394_b172401724786">root</strong> can run SSH or SCP commands on the host where ICAgent has been installed to remotely communicate with the host to install ICAgent.</li><li id="lts_02_0013__en-us_topic_0178700394_ldabf1e863a244935b64f4886660d0d45">When the message <strong id="lts_02_0013__en-us_topic_0178700394_b15134174332310">ICAgent install success</strong> is displayed, ICAgent has been installed in the <strong id="lts_02_0013__en-us_topic_0178700394_b12134104312317">/opt/oss/servicemgr/</strong> directory of the host. You can then view the ICAgent status on the <strong id="lts_02_0013__en-us_topic_0178700394_b189076116222">Agent Management</strong> page of the LTS console.</li><li id="lts_02_0013__en-us_topic_0178700394_l3e6531f2d26145a78a150940f0b03ab0">If the installation fails, uninstall ICAgent and reinstall it. If reinstallation fails, contact technical support.</li></ul>
</div></div>
</li></ol>
</div>
<div class="section" id="lts_02_0013__en-us_topic_0178700394_section844164283613"><h4 class="sectiontitle">Batch Inherited Installation</h4><p id="lts_02_0013__en-us_topic_0178700394_p1075244904613">Let's assume that you need to install ICAgent on multiple hosts, and one of the hosts already has ICAgent installed. The ICAgent installation package, <strong id="lts_02_0013__en-us_topic_0178700394_b57768032219">ICProbeAgent.tar.gz</strong>, is in the <strong id="lts_02_0013__en-us_topic_0178700394_b2077611013228">/opt/ICAgent/</strong> directory. You can follow the directions below to install ICAgent on other hosts in batches.</p>
<div class="notice" id="lts_02_0013__en-us_topic_0178700394_note1297320585379"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="lts_02_0013__en-us_topic_0178700394_ul22919102916"><li id="lts_02_0013__en-us_topic_0178700394_li102101942918">The hosts must all belong to the same Virtual Private Cloud (VPC) and be on the same subnet.</li></ul>
</div></div>
</div>
<p id="lts_02_0013__en-us_topic_0178700394_p7639318174319"><strong id="lts_02_0013__en-us_topic_0178700394_b12639318194317">Prerequisites</strong></p>
<p id="lts_02_0013__en-us_topic_0178700394_p2616113913431">The IP addresses and passwords of all hosts to install ICAgent have been collected, sorted in the <strong id="lts_02_0013__en-us_topic_0178700394_b19155062410">iplist.cfg</strong> file, and uploaded to the <strong id="lts_02_0013__en-us_topic_0178700394_b510150162418">/opt/ICAgent/</strong> directory on the host that has ICAgent installed. Each IP address and password in the <strong id="lts_02_0013__en-us_topic_0178700394_b14207131182512">iplist.cfg</strong> file must be separated by a space, as shown in the following:</p>
<p id="lts_02_0013__en-us_topic_0178700394_p13568182553415"><strong id="lts_02_0013__en-us_topic_0178700394_b7324045152818">192.168.2.109</strong> <em id="lts_02_0013__en-us_topic_0178700394_i3667124192818">Password of the host where ICAgent is to be installed</em></p>
<p id="lts_02_0013__en-us_topic_0178700394_p141601016222"><strong id="lts_02_0013__en-us_topic_0178700394_b569185052811">192.168.0.139</strong> <em id="lts_02_0013__en-us_topic_0178700394_i10711756142816">Password of the host where ICAgent is to be installed</em></p>
<div class="note" id="lts_02_0013__en-us_topic_0178700394_note1496715574713"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0013__en-us_topic_0178700394_ul10444321164817"><li id="lts_02_0013__en-us_topic_0178700394_li5122111919357">The <strong id="lts_02_0013__en-us_topic_0178700394_b440019111263">iplist.cfg</strong> file contains sensitive information. You are advised to clear it after using it.</li></ul>
<ul id="lts_02_0013__en-us_topic_0178700394_ul33449336484"><li id="lts_02_0013__en-us_topic_0178700394_li15759174210487">If all hosts share a password, list only IP addresses in the <strong id="lts_02_0013__en-us_topic_0178700394_b19183911112612">iplist.cfg</strong> file and enter the password manually during execution. If one of the hosts uses a different password, type the password behind its IP address.</li></ul>
</div></div>
<p id="lts_02_0013__en-us_topic_0178700394_p14541792492"><strong id="lts_02_0013__en-us_topic_0178700394_b1625316206302">Procedure</strong></p>
<ol id="lts_02_0013__en-us_topic_0178700394_ol192601039191017"><li id="lts_02_0013__en-us_topic_0178700394_li1626053913109">Run the following command on the host that has ICAgent installed:<p id="lts_02_0013__en-us_topic_0178700394_p144716157252"><a name="lts_02_0013__en-us_topic_0178700394_li1626053913109"></a><a name="en-us_topic_0178700394_li1626053913109"></a><strong id="lts_02_0013__en-us_topic_0178700394_b947211592514">bash /opt/oss/servicemgr/ICAgent/bin/remoteInstall/remote_install.sh -batchModeConfig /opt/ICAgent/iplist.cfg</strong></p>
<p id="lts_02_0013__en-us_topic_0178700394_p124726157251">Enter the password for user <strong id="lts_02_0013__en-us_topic_0178700394_b770610396260">root</strong> of the hosts to install ICAgent. If the passwords of all hosts have been configured in the <strong id="lts_02_0013__en-us_topic_0178700394_b187061395268">iplist.cfg</strong> file, press <strong id="lts_02_0013__en-us_topic_0178700394_b177076398266">Enter</strong> to skip this step.</p>
<pre class="screen" id="lts_02_0013__en-us_topic_0178700394_screen1647411519252">batch install begin
Please input default passwd:
send cmd to 192.168.0.109
send cmd to 192.168.0.39
2 tasks running, please wait...
2 tasks running, please wait...
2 tasks running, please wait...
End of install agent: 192.168.0.39
End of install agent: 192.168.0.109
All hosts install icagent finish.</pre>
<p id="lts_02_0013__en-us_topic_0178700394_p17481141512511">If the message <strong id="lts_02_0013__en-us_topic_0178700394_b83504214275">All hosts install icagent finish.</strong> is displayed, ICAgent has been installed on all the hosts listed in the configuration file.</p>
</li><li id="lts_02_0013__en-us_topic_0178700394_li2260163911020">Choose <strong id="lts_02_0013__en-us_topic_0178700394_b12611745419">Agent Management</strong> in the LTS navigation pane to view the ICAgent status. For details, see <a href="lts_04_0013.html#lts_04_0013">ICAgent Status</a>.</li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0012.html">Agent Management</a></div>
</div>
</div>

View File

@ -0,0 +1,16 @@
<a name="lts_02_0014"></a><a name="lts_02_0014"></a>
<h1 class="topictitle1">Upgrading ICAgent</h1>
<div id="body32001227"><p id="lts_02_0014__en-us_topic_0180919328_p202708754819">To deliver a better collection experience, LTS regularly upgrades ICAgent. When LTS prompts you that a new ICAgent version is available, you can follow the directions here to obtain the latest version.</p>
<div class="section" id="lts_02_0014__en-us_topic_0180919328_section3441614134517"><h4 class="sectiontitle">Procedure</h4><ol id="lts_02_0014__en-us_topic_0180919328_ol137191020164513"><li id="lts_02_0014__en-us_topic_0180919328_li18355417101">Log in to the LTS console and choose <strong id="lts_02_0014__en-us_topic_0180919328_b161241858151518">Agent Management</strong> in the navigation pane on the left.</li><li id="lts_02_0014__en-us_topic_0180919328_li16352317442">Select one or more hosts where ICAgent is to be upgraded, and click <strong id="lts_02_0014__en-us_topic_0180919328_b1640199095">Upgrade ICAgent</strong>.</li><li id="lts_02_0014__en-us_topic_0180919328_li1171912084518">In the <strong id="lts_02_0014__en-us_topic_0180919328_b1110171832">Upgrade ICAgent</strong> dialog box, click <strong id="lts_02_0014__en-us_topic_0180919328_b634699098">Yes</strong>.<p id="lts_02_0014__en-us_topic_0180919328_p1371942016456">The upgrade begins. This process takes about a minute. When the ICAgent status changes from <strong id="lts_02_0014__en-us_topic_0180919328_b0607153785813">Upgrading</strong> to <strong id="lts_02_0014__en-us_topic_0180919328_b3607163713589">Running</strong>, the ICAgent upgrade has completed.</p>
<div class="note" id="lts_02_0014__en-us_topic_0180919328_note146831515326"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0014__en-us_topic_0180919328_p64694159325">If the ICAgent status is abnormal after the upgrade or if the upgrade fails, log in to the host and run the installation command. ICAgent can be re-installed on top of itself.</p>
</div></div>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0012.html">Agent Management</a></div>
</div>
</div>

View File

@ -0,0 +1,56 @@
<a name="lts_02_0015"></a><a name="lts_02_0015"></a>
<h1 class="topictitle1">Uninstalling ICAgent</h1>
<div id="body32001227"><p id="lts_02_0015__en-us_topic_0178700396_en-us_topic_0089582116_p912134511">If ICAgent is uninstalled from a host, log collection will be affected. Exercise caution when performing this operation.</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note10915102418718"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0015__en-us_topic_0178700396_p13916924872">Uninstalling ICAgent does not delete the installation files. You need to delete them manually if necessary.</p>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_a1e63d18ccc3740a8896ba307b7a03ae6">There are a number of ways to uninstall ICAgent:</p>
<ul id="lts_02_0015__en-us_topic_0178700396_en-us_topic_0089582116_ul46358011247"><li id="lts_02_0015__en-us_topic_0178700396_lbfc8dbb4e0354404874a0b9e28afcdc8"><a href="#lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b">Uninstalling ICAgent on the Console</a>: This can be used to uninstall ICAgent that has been successfully installed.</li><li id="lts_02_0015__en-us_topic_0178700396_l4dced8c4004345e08c1b128cf9055d67"><a href="#lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808">Uninstalling ICAgent on a Host</a>: This can be used to remove ICAgent that fails to be installed for reinstallation.</li><li id="lts_02_0015__en-us_topic_0178700396_li11176124162011"><a href="#lts_02_0015__en-us_topic_0178700396_section6144172213109">Remotely Uninstalling ICAgent</a>: This can be used to remotely uninstall ICAgent that has been successfully installed.</li><li id="lts_02_0015__en-us_topic_0178700396_li1826103317218"><a href="#lts_02_0015__en-us_topic_0178700396_section1091572622115">Batch Uninstalling ICAgent</a>: This can be used to uninstall ICAgent that has been successfully installed from a batch of hosts.</li></ul>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"><a name="lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"></a><a name="en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"></a><h4 class="sectiontitle">Uninstalling ICAgent on the Console</h4><ol id="lts_02_0015__en-us_topic_0178700396_ol1163615355457"><li id="lts_02_0015__en-us_topic_0178700396_li13636153516452">Log in to the LTS console and choose <strong id="lts_02_0015__en-us_topic_0178700396_b1162463331810">Agent Management</strong> in the navigation pane on the left.</li><li id="lts_02_0015__en-us_topic_0178700396_li2636635174516">Select one or more hosts where ICAgent is to be uninstalled and click <strong id="lts_02_0015__en-us_topic_0178700396_b4802541796">Uninstall ICAgent</strong>.</li><li id="lts_02_0015__en-us_topic_0178700396_li1863643514519">In the <strong id="lts_02_0015__en-us_topic_0178700396_b51991672437">Uninstall ICAgent</strong> dialog box, click <strong id="lts_02_0015__en-us_topic_0178700396_b132001778432">Yes</strong>.<p id="lts_02_0015__en-us_topic_0178700396_p4648155913615">The uninstallation begins. This process takes about a minute.</p>
<p id="lts_02_0015__en-us_topic_0178700396_abcaa14c974d74c6294debcda7740cd79">When the ICAgent status changes from <strong id="lts_02_0015__en-us_topic_0178700396_b1984464019438">Uninstalling</strong> to <strong id="lts_02_0015__en-us_topic_0178700396_b1784444064315">Uninstalled</strong>, the ICAgent uninstallation has completed.</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note378712220197"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0015__en-us_topic_0178700396_p23592014467">To reinstall ICAgent, wait for 5 minutes after the uninstallation completes, or the reinstalled ICAgent may be unintentionally uninstalled again.</p>
</div></div>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"><a name="lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"></a><a name="en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"></a><h4 class="sectiontitle">Uninstalling ICAgent on a Host</h4><ol id="lts_02_0015__en-us_topic_0178700396_ol115565612467"><li id="lts_02_0015__en-us_topic_0178700396_li2055686104614">Log in to a host where ICAgent is to be uninstalled as user <strong id="lts_02_0015__en-us_topic_0178700396_b16932154710409">root</strong>.</li><li id="lts_02_0015__en-us_topic_0178700396_li1555611624615">Run the following command:<p id="lts_02_0015__en-us_topic_0178700396_p891012139469"><a name="lts_02_0015__en-us_topic_0178700396_li1555611624615"></a><a name="en-us_topic_0178700396_li1555611624615"></a><strong id="lts_02_0015__en-us_topic_0178700396_a4391a589ff234a96aa4761faba2c3ed7">bash /opt/oss/servicemgr/ICAgent/bin/manual/uninstall.sh;</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p56221116462">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b24871819144510">ICAgent uninstall success</strong> is displayed, the uninstallation has completed.</p>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_section6144172213109"><a name="lts_02_0015__en-us_topic_0178700396_section6144172213109"></a><a name="en-us_topic_0178700396_section6144172213109"></a><h4 class="sectiontitle">Remotely Uninstalling ICAgent</h4><p id="lts_02_0015__en-us_topic_0178700396_p1645519475100">You can uninstall ICAgent on one host remotely from another host. </p>
<ol id="lts_02_0015__en-us_topic_0178700396_ol10742172164617"><li id="lts_02_0015__en-us_topic_0178700396_li12742721174615">On a host that has ICAgent installed, run the following command. <em id="lts_02_0015__en-us_topic_0178700396_i10380242162018">x.x.x.x</em> indicates the IP address of the host you wish to uninstall ICAgent from.<p id="lts_02_0015__en-us_topic_0178700396_p940902511469"><strong id="lts_02_0015__en-us_topic_0178700396_b16236836122016">bash /opt/oss/servicemgr/ICAgent/bin/<strong id="lts_02_0015__en-us_topic_0178700396_b178991343134019">remoteUninstall</strong>/remote_uninstall.sh -ip </strong><em id="lts_02_0015__en-us_topic_0178700396_i1167683732019">x.x.x.x</em></p>
</li><li id="lts_02_0015__en-us_topic_0178700396_li19742182124613">Enter the password for user <strong id="lts_02_0015__en-us_topic_0178700396_b285211197535">root</strong> for the remote host.<div class="note" id="lts_02_0015__en-us_topic_0178700396_note65919111169"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0015__en-us_topic_0178700396_ul11493202120168"><li id="lts_02_0015__en-us_topic_0178700396_li184931521161615">If the Expect tool has been installed on the host you are running the command from, ICAgent will be uninstalled from the remote host after the command is executed. If the Expect tool has not been installed, you will need to enter the password of user <strong id="lts_02_0015__en-us_topic_0178700396_b16670721947">root</strong> for the remote host as prompted.</li><li id="lts_02_0015__en-us_topic_0178700396_li106360398163">Ensure that user <strong id="lts_02_0015__en-us_topic_0178700396_b1038616484217">root</strong> can run SSH or SCP commands on the host where ICAgent has been installed to communicate with the remote host.</li><li id="lts_02_0015__en-us_topic_0178700396_li15814953113619">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b8499165174818">ICAgent uninstall success</strong> is displayed, the uninstallation has completed. </li></ul>
</div></div>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_section1091572622115"><a name="lts_02_0015__en-us_topic_0178700396_section1091572622115"></a><a name="en-us_topic_0178700396_section1091572622115"></a><h4 class="sectiontitle">Batch Uninstalling ICAgent</h4><p id="lts_02_0015__en-us_topic_0178700396_p291117412375">If ICAgent has been installed on a host and the ICAgent installation package <strong id="lts_02_0015__en-us_topic_0178700396_b198122515010">ICProbeAgent.tar.gz</strong> is in the <strong id="lts_02_0015__en-us_topic_0178700396_b179571538505">/opt/ICAgent/</strong> directory of the host, you can use this method to uninstall ICAgent from multiple hosts at once.</p>
<div class="notice" id="lts_02_0015__en-us_topic_0178700396_note1297320585379"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="lts_02_0015__en-us_topic_0178700396_p13973155814378">The hosts must all belong to the same Virtual Private Cloud (VPC) and be on the same subnet.</p>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_p7639318174319"><strong id="lts_02_0015__en-us_topic_0178700396_b12639318194317">Prerequisites</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p68236518517"></p>
<p id="lts_02_0015__en-us_topic_0178700396_p2616113913431">The IP addresses and passwords of all hosts to uninstall ICAgent have been collected, sorted in the <strong id="lts_02_0015__en-us_topic_0178700396_b82593272107">iplist.cfg</strong> file, and uploaded to the <strong id="lts_02_0015__en-us_topic_0178700396_b789353410102">/opt/ICAgent/</strong> directory on the host that has ICAgent installed. Each IP address and password in the <strong id="lts_02_0015__en-us_topic_0178700396_b122359532100">iplist.cfg</strong> file must be separated by a space, as shown in the following example:</p>
<p id="lts_02_0015__en-us_topic_0178700396_p1548225822014"><em id="lts_02_0015__en-us_topic_0178700396_i572720711112">192.168.0.109 Password</em> (Replace the IP address and password with the actual ones)</p>
<p id="lts_02_0015__en-us_topic_0178700396_p141601016222"><em id="lts_02_0015__en-us_topic_0178700396_i12536161013112">192.168.0.39 Password</em> (Replace the IP address and password with the actual ones)</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note1496715574713"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0015__en-us_topic_0178700396_ul10444321164817"><li id="lts_02_0015__en-us_topic_0178700396_li5122111919357">The <strong id="lts_02_0015__en-us_topic_0178700396_b368531461419">iplist.cfg</strong> file contains sensitive information. You are advised to clear it after using it.</li></ul>
<ul id="lts_02_0015__en-us_topic_0178700396_ul33449336484"><li id="lts_02_0015__en-us_topic_0178700396_li15759174210487">If all hosts share a password, list only IP addresses in the <strong id="lts_02_0015__en-us_topic_0178700396_b125498541111">iplist.cfg</strong> file and enter the password manually during execution. If one of the hosts uses a different password, type the password behind its IP address.</li></ul>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_p179427484620"><strong id="lts_02_0015__en-us_topic_0178700396_b2025522713">Procedure</strong></p>
<ol id="lts_02_0015__en-us_topic_0178700396_ol14788175515460"><li id="lts_02_0015__en-us_topic_0178700396_li1178812550461">Run the following command on the host that has ICAgent installed:<p id="lts_02_0015__en-us_topic_0178700396_p152442311959"><a name="lts_02_0015__en-us_topic_0178700396_li1178812550461"></a><a name="en-us_topic_0178700396_li1178812550461"></a><strong id="lts_02_0015__en-us_topic_0178700396_b11980542182212">bash /opt/oss/servicemgr/ICAgent/bin/remoteUninstall/remote_uninstall.sh -batchModeConfig /opt/ICAgent/iplist.cfg</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p12876313165214">Enter the default password for user <strong id="lts_02_0015__en-us_topic_0178700396_b95110514128">root</strong> of the hosts to uninstall ICAgent. If the passwords of all hosts have been configured in the <strong id="lts_02_0015__en-us_topic_0178700396_b17508508134">iplist.cfg</strong> file, press <strong id="lts_02_0015__en-us_topic_0178700396_b1276611619131">Enter</strong> to skip this step.</p>
<pre class="screen" id="lts_02_0015__en-us_topic_0178700396_screen146121372410">batch uninstall begin
Please input default passwd:
send cmd to 192.168.0.109
send cmd to 192.168.0.39
2 tasks running, please wait...
End of uninstall agent: 192.168.0.109
End of uninstall agent: 192.168.0.39
All hosts uninstall icagent finish.</pre>
<p id="lts_02_0015__en-us_topic_0178700396_p1568349182512">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b186851828202414">All hosts uninstall icagent finish.</strong> is displayed, the batch uninstallation has completed.</p>
</li><li id="lts_02_0015__en-us_topic_0178700396_li87883553460">Choose <strong id="lts_02_0015__en-us_topic_0178700396_b487413045111">Agent Management</strong> in the LTS navigation pane to view the ICAgent status of the host.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0012.html">Agent Management</a></div>
</div>
</div>

View File

@ -0,0 +1,55 @@
<a name="lts_03_0002"></a><a name="lts_03_0002"></a>
<h1 class="topictitle1">How Do I Install ICAgent by Creating an Agency?</h1>
<div id="body32001227"><p id="lts_03_0002__en-us_topic_0293445486_p8425154124220">When installing ICAgent, you can create an IAM agency, and ICAgent will automatically obtain an AK/SK pair and generate the ICAgent installation command.</p>
<div class="section" id="lts_03_0002__en-us_topic_0293445486_section20107009105033"><h4 class="sectiontitle">Procedure</h4><ol id="lts_03_0002__en-us_topic_0293445486_ol52583714459"><li id="lts_03_0002__en-us_topic_0293445486_li1857413379164">Log in to the console and choose <strong id="lts_03_0002__en-us_topic_0293445486_b492144110318">Service List</strong> &gt; <strong id="lts_03_0002__en-us_topic_0293445486_b1856743753115">Management &amp; Deployment</strong> &gt; <strong id="lts_03_0002__en-us_topic_0293445486_b656833712310">Identity and Access Management</strong>.</li><li id="lts_03_0002__en-us_topic_0293445486_li92587744519">Choose <strong id="lts_03_0002__en-us_topic_0293445486_b1548214415313">Agencies</strong> in the navigation pane on the left.</li><li id="lts_03_0002__en-us_topic_0293445486_li225810710452">Click <strong id="lts_03_0002__en-us_topic_0293445486_b315163653215">Create Agency</strong> in the upper right corner and set parameters as follows:
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_03_0002__en-us_topic_0293445486_t7927638d398c4cc593fe522b3e57a455" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Agency parameters</caption><thead align="left"><tr id="lts_03_0002__en-us_topic_0293445486_r2b7018576372419b88d12153e7ae2e2d"><th align="left" class="cellrowborder" valign="top" width="20.89%" id="mcps1.3.2.2.3.2.2.3.1.1"><p id="lts_03_0002__en-us_topic_0293445486_a5338753789014f83992ef0e9afa765c4">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="79.11%" id="mcps1.3.2.2.3.2.2.3.1.2"><p id="lts_03_0002__en-us_topic_0293445486_a6443af589fce4dae8bd9a36ab67de830">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_03_0002__en-us_topic_0293445486_r1a070920b2e840889bcf25a8f83b6cd6"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_a40aea2dbb17d423e9932edae9fd6446e">Agency Name</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><p id="lts_03_0002__en-us_topic_0293445486_p1463265793238">Set the agency name. For example, <strong id="lts_03_0002__en-us_topic_0293445486_b1848914173314">lts_ecm_trust</strong>.</p>
</td>
</tr>
<tr id="lts_03_0002__en-us_topic_0293445486_row4972661785645"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_p132416285645">Agency Type</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><p id="lts_03_0002__en-us_topic_0293445486_p4014829685645">Select <strong id="lts_03_0002__en-us_topic_0293445486_b97009763316">Cloud service</strong>.</p>
</td>
</tr>
<tr id="lts_03_0002__en-us_topic_0293445486_row3396623485650"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_p6691045885650">Cloud Service</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><p id="lts_03_0002__en-us_topic_0293445486_p5103803585650">Select <strong id="lts_03_0002__en-us_topic_0293445486_b4654144024816">Elastic Cloud Server (ECS) and Bare Metal Server (BMS)</strong>.</p>
</td>
</tr>
<tr id="lts_03_0002__en-us_topic_0293445486_row4629619885647"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_p5900455885647">Validity Period</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><p id="lts_03_0002__en-us_topic_0293445486_p1463990785647">Select <strong id="lts_03_0002__en-us_topic_0293445486_b13208163813319">Unlimited</strong>.</p>
</td>
</tr>
<tr id="lts_03_0002__en-us_topic_0293445486_rb277140c618c49aaa12b87491df5daee"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_a60d1f058ca00492e88d13355b71cb6e0">Description</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><p id="lts_03_0002__en-us_topic_0293445486_a30b88bd747ba432db4e9f08d93ded927">(Optional) Provide details about the agency.</p>
</td>
</tr>
<tr id="lts_03_0002__en-us_topic_0293445486_row69151722237"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.2.2.3.2.2.3.1.1 "><p id="lts_03_0002__en-us_topic_0293445486_p13915202202319">Permissions</p>
</td>
<td class="cellrowborder" valign="top" width="79.11%" headers="mcps1.3.2.2.3.2.2.3.1.2 "><ol type="a" id="lts_03_0002__en-us_topic_0293445486_ol205071834182711"><li id="lts_03_0002__en-us_topic_0293445486_li145081434152713">In the <strong id="lts_03_0002__en-us_topic_0293445486_b16949142533414">Permissions</strong> area, click <strong id="lts_03_0002__en-us_topic_0293445486_b9955162512347">Assign Permissions</strong>.</li><li id="lts_03_0002__en-us_topic_0293445486_li050833412718">Search for <strong id="lts_03_0002__en-us_topic_0293445486_b14627437173620">LTS Admin</strong> and <strong id="lts_03_0002__en-us_topic_0293445486_b36272376369">APM Administrator</strong> and select them.</li><li id="lts_03_0002__en-us_topic_0293445486_li1750502172816">Click <strong id="lts_03_0002__en-us_topic_0293445486_b11493110183714">OK</strong> on the <strong id="lts_03_0002__en-us_topic_0293445486_b30123683713">Assign Permissions</strong> page.</li></ol>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="lts_03_0002__en-us_topic_0293445486_li34891020142911">Click <strong id="lts_03_0002__en-us_topic_0293445486_b079343623716">OK</strong> on the <strong id="lts_03_0002__en-us_topic_0293445486_b12483051173716">Create Agency</strong> page.</li></ol>
</div>
<div class="section" id="lts_03_0002__en-us_topic_0293445486_section104888320522"><h4 class="sectiontitle">Making an Agency Effective</h4><ol id="lts_03_0002__en-us_topic_0293445486_ol8612193912920"><li id="lts_03_0002__en-us_topic_0293445486_li161213952911">Choose <strong id="lts_03_0002__en-us_topic_0293445486_b184389142567">Service List</strong> &gt; <strong id="lts_03_0002__en-us_topic_0293445486_b387041113815">Computing</strong> &gt; <strong id="lts_03_0002__en-us_topic_0293445486_b1987011113819">Elastic Cloud Server</strong>.</li><li id="lts_03_0002__en-us_topic_0293445486_li1461219393291">Click the ECS where ICAgent is installed. The ECS details page is displayed.</li><li id="lts_03_0002__en-us_topic_0293445486_li36128394295">Select the created agency and confirm the configuration to make the agency effective.</li><li id="lts_03_0002__en-us_topic_0293445486_li18612163914293">(Optional) If you want to set an agency when you are purchasing an ECS, do as follows: Click <strong id="lts_03_0002__en-us_topic_0293445486_b83148018411">Buy ECS</strong> on the ECS console. In the <strong id="lts_03_0002__en-us_topic_0293445486_b6832324184614">Configure Advanced Settings</strong> step, set <strong id="lts_03_0002__en-us_topic_0293445486_b203191709414">Advanced Options</strong> to <strong id="lts_03_0002__en-us_topic_0293445486_b33196094112">Configure now</strong> and select an agency from the <strong id="lts_03_0002__en-us_topic_0293445486_b1531900164114">Agency</strong> drop-down list. Set the other parameters and click <strong id="lts_03_0002__en-us_topic_0293445486_b1525310818471">Next</strong>.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0017.html">Appendixes</a></div>
</div>
</div>

View File

@ -0,0 +1,14 @@
<a name="lts_03_0015"></a><a name="lts_03_0015"></a>
<h1 class="topictitle1">How Do I Obtain an AK/SK Pair?</h1>
<div id="body32001227"><div class="section" id="lts_03_0015__en-us_topic_0293444591_section126012416344"><h4 class="sectiontitle">Procedure</h4><ol id="lts_03_0015__en-us_topic_0293444591_ol17315124014336"><li id="lts_03_0015__en-us_topic_0293444591_li1953019389337">Log in to the console, hover your cursor over your username in the upper right corner, and select <strong id="lts_03_0015__en-us_topic_0293444591_b9411456185617">My Credentials</strong>.</li><li id="lts_03_0015__en-us_topic_0293444591_li1131711293369">Click the <strong id="lts_03_0015__en-us_topic_0293444591_b41561431113614">Access Keys</strong> tab.</li><li id="lts_03_0015__en-us_topic_0293444591_li14800519193719">Click <strong id="lts_03_0015__en-us_topic_0293444591_b4161439145718">Create Access Key</strong>, and enter the login password.</li><li id="lts_03_0015__en-us_topic_0293444591_li650917417411">Click <strong id="lts_03_0015__en-us_topic_0293444591_b250820133720">OK</strong>. The <strong id="lts_03_0015__en-us_topic_0293444591_b2417114743814">credentials</strong> file is automatically downloaded.</li><li id="lts_03_0015__en-us_topic_0293444591_li75109434111">Obtain the AK/SK pair from the <strong id="lts_03_0015__en-us_topic_0293444591_b158573763919">credentials</strong> file.</li></ol>
<div class="note" id="lts_03_0015__en-us_topic_0293444591_note13830124715423"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_03_0015__en-us_topic_0293444591_p325503818399">Up to two access keys can be created for each user. An access key can be downloaded only right after it is created. Keep it secure after it is generated. If the <strong id="lts_03_0015__en-us_topic_0293444591_b884618314442">Create Access Key</strong> button is grayed out, delete an access key first before creating one.</p>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0017.html">Appendixes</a></div>
</div>
</div>

View File

@ -0,0 +1,15 @@
<a name="lts_04_0002"></a><a name="lts_04_0002"></a>
<h1 class="topictitle1">Log Management</h1>
<div id="body1574125673423"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_04_0003.html">Managing Log Groups</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_04_0004.html">Managing Log Streams</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_04_0005.html">Configuring Log Collection Rules</a></strong><br>
</li>
</ul>
</div>

View File

@ -0,0 +1,25 @@
<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 which share the same log retention settings. 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><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.<p id="lts_04_0003__en-us_topic_0000001125775239_p179951323185918"><span><img id="lts_04_0003__en-us_topic_0000001125775239_image13783162525913" src="en-us_image_0000001368010788.png"></span></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_li711994212516">Cannot start with a period (.) or underscore (_), and cannot 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_li06577445326">Log retention duration is 7 days by default and cannot be modified.<p id="lts_04_0003__en-us_topic_0000001125775239_p156141801511"><a name="lts_04_0003__en-us_topic_0000001125775239_li06577445326"></a><a name="en-us_topic_0000001125775239_li06577445326"></a><span><img id="lts_04_0003__en-us_topic_0000001125775239_image139591611312" src="en-us_image_0000001419010601.png"></span></p>
<p id="lts_04_0003__en-us_topic_0000001125775239_p7758959404"></p>
</li><li id="lts_04_0003__en-us_topic_0000001125775239_li16283185518373">Click <strong id="lts_04_0003__en-us_topic_0000001125775239_b197511022121713">OK</strong>.</li><li id="lts_04_0003__en-us_topic_0000001125775239_li3809652185419">In the log group list on the <strong id="lts_04_0003__en-us_topic_0000001125775239_b1356511313206">Log Management</strong> page, you can view details of the log group, including log group name, log retention duration, creation time, and creation type.</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">Yes</strong>.<p id="lts_04_0003__en-us_topic_0000001125775239_p141391614155120"></p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0002.html">Log Management</a></div>
</div>
</div>

View File

@ -0,0 +1,31 @@
<a name="lts_04_0004"></a><a name="lts_04_0004"></a>
<h1 class="topictitle1">Managing Log Streams</h1>
<div id="body32001227"><p id="lts_04_0004__en-us_topic_0000001125876999_p88755122406">A log stream is the basic unit for reading and writing logs. Sorting logs into different log streams makes it easier to find specific logs when you need them.</p>
<p id="lts_04_0004__en-us_topic_0000001125876999_p11958512111110">Up to 100 log streams can be created in a log group. The upper limit cannot be increased. If you cannot create a log stream because the upper limit is reached, you are advised to delete log streams that are no longer needed and try again, or create log streams in a new log group.</p>
<div class="section" id="lts_04_0004__en-us_topic_0000001125876999_s73cd6b7f36aa4bac8d9fa233c0b7bb5b"><h4 class="sectiontitle">Prerequisites</h4><p id="lts_04_0004__en-us_topic_0000001125876999_en-us_topic_0067564152_p30914459742">You have created a log group.</p>
</div>
<div class="section" id="lts_04_0004__en-us_topic_0000001125876999_section174332311378"><h4 class="sectiontitle">Creating a Log Stream</h4><ol id="lts_04_0004__en-us_topic_0000001125876999_ol6569343163310"><li id="lts_04_0004__en-us_topic_0000001125876999_li561775651515">On the LTS console, click the name of the created log group.</li><li id="lts_04_0004__en-us_topic_0000001125876999_li862761910384">Click <strong id="lts_04_0004__en-us_topic_0000001125876999_b711424511301">Create Log Stream</strong> in the upper left corner, and enter a log stream name. After a log stream is created, its name cannot be changed. A log stream name:<ul id="lts_04_0004__en-us_topic_0000001125876999_ul1541720124619"><li id="lts_04_0004__en-us_topic_0000001125876999_li1449201464">Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).</li><li id="lts_04_0004__en-us_topic_0000001125876999_li711994212516">Cannot start with a period (.) or underscore (_), and cannot end with a period (.).</li><li id="lts_04_0004__en-us_topic_0000001125876999_li114220204618">Can contain 1 to 64 characters.</li></ul>
<p id="lts_04_0004__en-us_topic_0000001125876999_p182285651011"><span><img id="lts_04_0004__en-us_topic_0000001125876999_image10285957181016" src="en-us_image_0000001419012101.png"></span></p>
<div class="note" id="lts_04_0004__en-us_topic_0000001125876999_note945514416454"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0004__en-us_topic_0000001125876999_p5877425174717">Collected logs are sent to the created log stream. If there are too many logs to collect, you are advised to separate logs into different log streams based on log types, and name log streams in an easily identifiable way.</p>
</div></div>
</li><li id="lts_04_0004__en-us_topic_0000001125876999_li15617675397">Click <strong id="lts_04_0004__en-us_topic_0000001125876999_b775213910455">OK</strong>.<p id="lts_04_0004__en-us_topic_0000001125876999_p346191218394">On the log stream page, you can view details of the log stream, including log stream name, creation time, and creation type.</p>
<p id="lts_04_0004__en-us_topic_0000001125876999_p41741141104818"></p>
<div class="p" id="lts_04_0004__en-us_topic_0000001125876999_p189751737174719"><div class="note" id="lts_04_0004__en-us_topic_0000001125876999_note5288181618474"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0004__en-us_topic_0000001125876999_p121911649113712">Logs cannot be downloaded from log streams on the LTS console. You need to transfer logs to Object Storage Service (OBS) and download them from the OBS console.</p>
</div></div>
</div>
</li></ol>
</div>
<div class="section" id="lts_04_0004__en-us_topic_0000001125876999_section4512155519468"><h4 class="sectiontitle">Deleting a Log Stream</h4><p id="lts_04_0004__en-us_topic_0000001125876999_p73401128125415">You can delete a log stream that is no longer needed. Deleting a log stream will also delete the log data in the log stream. Deleted log streams cannot be recovered. Exercise caution when performing the deletion.</p>
<div class="note" id="lts_04_0004__en-us_topic_0000001125876999_note1616116263342"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_04_0004__en-us_topic_0000001125876999_ul1199554119191"><li id="lts_04_0004__en-us_topic_0000001125876999_li69967418193">Before deleting a log stream, check whether any log collection task is configured for it. If there is a log collection task, deleting the log stream may affect log reporting.</li><li id="lts_04_0004__en-us_topic_0000001125876999_li8996341141910">If you want to delete a log stream that is associated with a log transfer task, delete the task first.</li></ul>
</div></div>
<ol id="lts_04_0004__en-us_topic_0000001125876999_ol1946019329405"><li id="lts_04_0004__en-us_topic_0000001125876999_li124615324406">In the log stream list, locate the target log stream and click <strong id="lts_04_0004__en-us_topic_0000001125876999_b20703182214512">Delete</strong> in the <strong id="lts_04_0004__en-us_topic_0000001125876999_b17094228512">Operation</strong> column.</li><li id="lts_04_0004__en-us_topic_0000001125876999_li1275983414810">Enter <strong id="lts_04_0004__en-us_topic_0000001125876999_b9415115273417">DELETE</strong> and click <strong id="lts_04_0004__en-us_topic_0000001125876999_b9415195215345">Yes</strong>.<p id="lts_04_0004__en-us_topic_0000001125876999_p1989213369529"></p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0002.html">Log Management</a></div>
</div>
</div>

View File

@ -0,0 +1,92 @@
<a name="lts_04_0005"></a><a name="lts_04_0005"></a>
<h1 class="topictitle1">Configuring Log Collection Rules</h1>
<div id="body32001227"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p21020509444">ICAgent collects logs from hosts based on your specified collection rules, and packages and sends the collected log data to LTS on a log-stream basis. You can view logs on the LTS console in real time.</p>
<div class="section" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_section14555725105730"><h4 class="sectiontitle">Prerequisites</h4><ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul5375454010589"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li60815844163740">You have created a log group.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li45012394163757">You have created a log stream.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li19374494105811">You have installed <a href="lts_02_0013.html#lts_02_0013">ICAgent</a>.</li></ul>
</div>
<div class="section" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_section4459740113823"><h4 class="sectiontitle">Procedure</h4><ol id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ol49102793113914"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li174391546164213">Log in to the LTS console, choose <strong id="lts_04_0005__en-us_topic_0293441853_b1178319465013">Log Management</strong> in the navigation pane on the left, and click the name of a log group.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li24391346194219">Click the name of a log stream. Logs will be collected to this log stream.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li12439546154217">Click <strong id="lts_04_0005__en-us_topic_0293441853_b51119456508">Collection Configuration</strong> in the navigation pane. The collection configuration details page is displayed.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li145645542918">Click <strong id="lts_04_0005__en-us_topic_0293441853_b10786184134116">Add Path</strong>.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li638117989458">In the <strong id="lts_04_0005__en-us_topic_0293441853_b3831330163115">Add Host</strong> step, select the host whose logs you want to collect and click <strong id="lts_04_0005__en-us_topic_0293441853_b124001441163118">Next</strong>.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li62911826172717">In the <strong id="lts_04_0005__en-us_topic_0293441853_b2071275319400">Configure Collection Path</strong> step, add the path of logs you want to collect.<ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul51571445133017"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1815744517308"><strong id="lts_04_0005__en-us_topic_0293441853_b4284172094113">Logs can be collected recursively. A double asterisk (**) can represent up to 5 directory levels in a path.</strong><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p3258612173415">For example, <strong id="lts_04_0005__en-us_topic_0293441853_b1357945244119">/var/logs/**/a.log</strong> will match the following logs:</p>
<pre class="screen" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_screen1780265224610">/var/logs/1/a.log
/var/logs/1/2/a.log
/var/logs/1/2/3/a.log
/var/logs/1/2/3/4/a.log
/var/logs/1/2/3/4/5/a.log</pre>
<div class="note" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_note175821138143415"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul117166156357"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li16892539134210"><strong id="lts_04_0005__en-us_topic_0293441853_b2171109164216">/1/2/3/4/5/</strong> indicates the 5 levels of directories under the <strong id="lts_04_0005__en-us_topic_0293441853_b111761897425">/var/logs</strong> directory. All the <strong id="lts_04_0005__en-us_topic_0293441853_b217617918426">a.log</strong> files found in all these levels of directories will be collected.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li9744123419425">Only one double asterisk (**) can be contained in a collection path. For example, <strong id="lts_04_0005__en-us_topic_0293441853_b293919281429">/var/logs/**/a.log</strong> is acceptable but <strong id="lts_04_0005__en-us_topic_0293441853_b1294412816420">/opt/test/**/log/**</strong> is not.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li671741563516">A collection path cannot begin with a double asterisk (**), such as <strong id="lts_04_0005__en-us_topic_0293441853_b2516122815193">/**/test</strong> to avoid collecting system files.</li></ul>
</div></div>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1892547457"><strong id="lts_04_0005__en-us_topic_0293441853_b18277559161614">You can use an asterisk (*) as a wildcard for fuzzy match. The wildcard (*) can represent one or more characters of a directory or file name.</strong><ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul15790184965011"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li491442125019">Example 1: <strong id="lts_04_0005__en-us_topic_0293441853_b565971417467">/var/logs/*/a.log</strong> will match all <strong id="lts_04_0005__en-us_topic_0293441853_b1166411415461">a.log</strong> files found in all directories under the <strong id="lts_04_0005__en-us_topic_0293441853_b146651414154616">/var/logs/</strong> directory:<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p18625325014">/var/logs/1/a.log</p>
<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1550915540506">/var/logs/2/a.log</p>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li0931742105017">Example 2: <strong id="lts_04_0005__en-us_topic_0293441853_b15810193174616">/var/logs/service-*/a.log</strong> will match files as follows:<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p14293155115111">/var/logs/service-1/a.log</p>
<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p11442185955017">/var/logs/service-2/a.log</p>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li185650188510">Example 3: <strong id="lts_04_0005__en-us_topic_0293441853_b15322173754614">/var/logs/service/a*.log</strong> will match files as follows:<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p610362613515">/var/logs/service/a1.log</p>
<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1380652920511">/var/logs/service/a2.log</p>
</li></ul>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1486311337576">If the collection path is set to a directory (such as <strong id="lts_04_0005__en-us_topic_0293441853_b8557956134617">/var/logs/</strong>), only <strong id="lts_04_0005__en-us_topic_0293441853_b31694454316">.log</strong>, <strong id="lts_04_0005__en-us_topic_0293441853_b1266174720319">.trace</strong>, and <strong id="lts_04_0005__en-us_topic_0293441853_b79991149183117">.out</strong> files in the directory are collected.<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p9684131210376">If the collection path is set to a file name, the corresponding file is collected. Only text files can be collected.</p>
</li></ul>
<div class="note" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_note161033393012"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul0610183333019"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li160993310307">Ensure that sensitive information is not collected.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li98011174515">System logs are not collected by LTS by default. If you need to collect system logs, configure a corresponding collection path.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li25692434519">LTS cannot collect logs of PostgreSQL (database) instances. It only collects logs of ECS (host) instances.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li8609133313303">A collection path can be configured only once. It means that a path of a host cannot be added for different log streams. Otherwise, log collection may be abnormal.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li7609183303013">If a collection path of a host has been configured in Application Operations Management (AOM), do not configure the path in LTS. If a path is configured in both AOM and LTS, only the path that is configured later takes effect.</li></ul>
</div></div>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li14471227289">Click <strong id="lts_04_0005__en-us_topic_0293441853_b1539232355015">Next: Configure Collection</strong>.
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_table18406251941" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Log collection settings</caption><thead align="left"><tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row1405251141"><th align="left" class="cellrowborder" valign="top" width="21.029999999999998%" id="mcps1.3.3.2.7.2.2.3.1.1"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1540225342">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.97%" id="mcps1.3.3.2.7.2.2.3.1.2"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p44013251147">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row3400251543"><td class="cellrowborder" valign="top" width="21.029999999999998%" headers="mcps1.3.3.2.7.2.2.3.1.1 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p10408253414">Log Format</p>
</td>
<td class="cellrowborder" valign="top" width="78.97%" headers="mcps1.3.3.2.7.2.2.3.1.2 "><ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul5154187298"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1715413813290"><strong id="lts_04_0005__en-us_topic_0293441853_b37621441184819">Single-line</strong>: Each log line is displayed as a single log event.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1615478182910"><strong id="lts_04_0005__en-us_topic_0293441853_b4267350104913">Multi-line</strong>: Multiple lines of exception log events can be displayed as a single log event. This is helpful when you check logs to locate problems.</li></ul>
</td>
</tr>
<tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row61363591214"><td class="cellrowborder" rowspan="2" valign="top" width="21.029999999999998%" headers="mcps1.3.3.2.7.2.2.3.1.1 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p7409251543">Log Time</p>
</td>
<td class="cellrowborder" valign="top" width="78.97%" headers="mcps1.3.3.2.7.2.2.3.1.2 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p413103571214"><strong id="lts_04_0005__en-us_topic_0293441853_b71031536135413">System time</strong>: log collection time by default. It is displayed at the beginning of each log event.</p>
<div class="note" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_note6528163144520"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p2642035113918">Log printing time is the time when logs are printed. Log collection time is the time when logs are collected and sent by ICAgent to LTS.</p>
<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p165291431174518">ICAgent collects and sends logs to LTS with an interval of 1 second.</p>
</div></div>
</td>
</tr>
<tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row8405251541"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.7.2.2.3.1.1 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p24022513410"><strong id="lts_04_0005__en-us_topic_0293441853_b182225419553">Time wildcard</strong>: You can set a time wildcard so that ICAgent will look for the log printing time as the beginning of a log event.</p>
<ul id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_ul175066124118"><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li1375026114110">If the time format in a log event is <strong id="lts_04_0005__en-us_topic_0293441853_b19124163512565">2019-01-01 23:59:59</strong>, the time wildcard should be set to <strong id="lts_04_0005__en-us_topic_0293441853_b17830242115616">YYYY-MM-DD hh:mm:ss</strong>.</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li87506616419">If the time format in a log event is <strong id="lts_04_0005__en-us_topic_0293441853_b186303255711">19-1-1 23:59:59</strong>, the time wildcard should be set to <strong id="lts_04_0005__en-us_topic_0293441853_b20551337195720">YY-M-D hh:mm:ss</strong>.</li></ul>
<div class="note" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_note1240182519419"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1440192512410">If a log event does not contain year information, ICAgent regards it as printed in the current year.</p>
</div></div>
<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p2408256414">Example:</p>
<pre class="screen" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_screen164015252415">YY - year (19)
YYYY - year (2019)
M - month (1)
MM - month (01)
D - day (1)
DD - day (01)
hh - hours (23)
mm - minutes (59)
ss - seconds (59)
hpm - hours (03PM)
h:mmpm - hours:minutes (03:04PM)
h:mm:sspm - hours:minutes:seconds (03:04:05PM)
hh:mm:ss ZZZZ (16:05:06 +0100)
hh:mm:ss ZZZ (16:05:06 CET)
hh:mm:ss ZZ (16:05:06 +01:00)</pre>
</td>
</tr>
<tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row164018251744"><td class="cellrowborder" valign="top" width="21.029999999999998%" headers="mcps1.3.3.2.7.2.2.3.1.1 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1040925146">Log Segmentation</p>
</td>
<td class="cellrowborder" valign="top" width="78.97%" headers="mcps1.3.3.2.7.2.2.3.1.2 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p1407258413">This parameter needs to be specified if the <strong id="lts_04_0005__en-us_topic_0293441853_b14203101810587">Log Format</strong> is set to <strong id="lts_04_0005__en-us_topic_0293441853_b6208718165819">Multi-line</strong>. <strong id="lts_04_0005__en-us_topic_0293441853_b9208818115816">By generation time</strong> indicates that a time wildcard is used to detect log boundaries, whereas <strong id="lts_04_0005__en-us_topic_0293441853_b14209718195813">By regular expression</strong> indicates that a regular expression is used.</p>
</td>
</tr>
<tr id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_row34072515420"><td class="cellrowborder" valign="top" width="21.029999999999998%" headers="mcps1.3.3.2.7.2.2.3.1.1 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p2406250415">Regular Expression</p>
</td>
<td class="cellrowborder" valign="top" width="78.97%" headers="mcps1.3.3.2.7.2.2.3.1.2 "><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p3406251141">You can set a regular expression to look for a specific pattern to indicate the beginning of a log event. This parameter needs to be specified when you select <strong id="lts_04_0005__en-us_topic_0293441853_b1179464020582">Multi-line</strong> for <strong id="lts_04_0005__en-us_topic_0293441853_b11800144015820">Log Format</strong> and <strong id="lts_04_0005__en-us_topic_0293441853_b98001240175812">By regular expression</strong> for <strong id="lts_04_0005__en-us_topic_0293441853_b1980014085811">Log Segmentation</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_note1559212434233"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p166991314256">The time wildcard and regular expression will look for the specified pattern right from the beginning of each log line. If no match is found, the system time, which may be different from the time in the log event, is used. For example, if the time wildcard is set to <strong id="lts_04_0005__en-us_topic_0293441853_b1597719113592">YYYY-MM-DD hh:mm:ss</strong> but the time in the log event is <strong id="lts_04_0005__en-us_topic_0293441853_b5982111135913">[2019-01-01 23:59:59]</strong>, they cannot be matched. In general cases, you are advised to select <strong id="lts_04_0005__en-us_topic_0293441853_b145157288596">Single-line</strong> for <strong id="lts_04_0005__en-us_topic_0293441853_b6521192835911">Log Format</strong> and <strong id="lts_04_0005__en-us_topic_0293441853_b95217285598">System time</strong> for <strong id="lts_04_0005__en-us_topic_0293441853_b152102865917">Log Time</strong>.</p>
</div></div>
</li><li id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_li7806459201319">Click <strong id="lts_04_0005__en-us_topic_0293441853_b2084463411591">OK</strong>. LTS will collect logs based on your specified collection rules.<p id="lts_04_0005__en-us_topic_0293441853_en-us_topic_0233760086_p8872190141410">The configurations of the log collection path can still be changed after the path is added.</p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0002.html">Log Management</a></div>
</div>
</div>

View File

@ -0,0 +1,15 @@
<a name="lts_04_0007"></a><a name="lts_04_0007"></a>
<h1 class="topictitle1">Log View</h1>
<div id="body1548930282565"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_04_0008.html">Viewing Real-Time Logs</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_04_0009.html">Log Search</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_04_0010.html">Quick Search</a></strong><br>
</li>
</ul>
</div>

View File

@ -0,0 +1,22 @@
<a name="lts_04_0008"></a><a name="lts_04_0008"></a>
<h1 class="topictitle1">Viewing Real-Time Logs</h1>
<div id="body32001227"><p id="lts_04_0008__en-us_topic_0178020310_p836612811396">You can view the logs reported to the LTS console in real time.</p>
<div class="section" id="lts_04_0008__en-us_topic_0178020310_section14555725105730"><h4 class="sectiontitle">Prerequisites</h4><ul id="lts_04_0008__en-us_topic_0178020310_ul5375454010589"><li id="lts_04_0008__en-us_topic_0178020310_li60815844163740">You have created log groups and log streams.</li><li id="lts_04_0008__en-us_topic_0178020310_li19374494105811">You have installed <a href="lts_02_0013.html#lts_02_0013">ICAgent</a>.</li><li id="lts_04_0008__en-us_topic_0178020310_li692310116320">You have configured log collection rules.</li></ul>
</div>
<div class="section" id="lts_04_0008__en-us_topic_0178020310_section673152323910"><h4 class="sectiontitle">Procedure</h4><ol id="lts_04_0008__en-us_topic_0178020310_ol1617063515611"><li id="lts_04_0008__en-us_topic_0178020310_li1416993514569">Log in to the LTS console and choose <strong id="lts_04_0008__en-us_topic_0178020310_b17266141125610">Log Management</strong>.</li><li id="lts_04_0008__en-us_topic_0178020310_li121693355569">In the log group list, click the name of a log group.</li><li id="lts_04_0008__en-us_topic_0178020310_li416923565612">In the log stream list, click the name of a log stream.</li><li id="lts_04_0008__en-us_topic_0178020310_li017023510568">On the log stream details page, click the <strong id="lts_04_0008__en-us_topic_0178020310_b1473174235413">Real-Time Logs</strong> tab to view logs in real time.</li></ol>
</div>
<p id="lts_04_0008__en-us_topic_0178020310_p1285716341193">Logs are reported to LTS once every five seconds. You may wait for at most five seconds before the logs are displayed.</p>
<div class="p" id="lts_04_0008__en-us_topic_0178020310_p15343526113611">You can control log display by clicking <strong id="lts_04_0008__en-us_topic_0178020310_b38641269110">Clear</strong> or <strong id="lts_04_0008__en-us_topic_0178020310_b58330368549">Pause</strong> in the upper right corner.<ul id="lts_04_0008__en-us_topic_0178020310_ul20343226123615"><li id="lts_04_0008__en-us_topic_0178020310_li434212269362"><strong id="lts_04_0008__en-us_topic_0178020310_b8851182319334">Clear</strong>: Displayed logs will be cleared from the real-time view.</li><li id="lts_04_0008__en-us_topic_0178020310_li10342122613367"><strong id="lts_04_0008__en-us_topic_0178020310_b20309122853320">Pause</strong>: Loading of new logs to the real-time view will be paused.<p id="lts_04_0008__en-us_topic_0178020310_p12342526133610">After you click <strong id="lts_04_0008__en-us_topic_0178020310_b78514412022">Pause</strong>, the button changes to <strong id="lts_04_0008__en-us_topic_0178020310_b12851204110219">Continue</strong>. You can click <strong id="lts_04_0008__en-us_topic_0178020310_b118528411522">Continue</strong> to resume the log loading to the real-time view.</p>
<p id="lts_04_0008__en-us_topic_0178020310_p41963448513"></p>
</li></ul>
<div class="note" id="lts_04_0008__en-us_topic_0178020310_note1734352623613"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0008__en-us_topic_0178020310_p944713493261">Stay on the <strong id="lts_04_0008__en-us_topic_0178020310_b1020914184556">Real-Time Logs</strong> tab to keep updating them in real time. If you leave the <strong id="lts_04_0008__en-us_topic_0178020310_b1924203011352">Real-Time Logs</strong> tab page, logs will stop being loaded in real time. The next time you access the tab, the logs that were shown before you left the tab will not be displayed.</p>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0007.html">Log View</a></div>
</div>
</div>

View File

@ -0,0 +1,91 @@
<a name="lts_04_0009"></a><a name="lts_04_0009"></a>
<h1 class="topictitle1">Log Search</h1>
<div id="body32001227"><p id="lts_04_0009__en-us_topic_0178020380_p4209824132516">Follow the directions below to search logs by keyword and time range:</p>
<ol id="lts_04_0009__en-us_topic_0178020380_ol6569343163310"><li id="lts_04_0009__en-us_topic_0178020380_li3537165075418">On the LTS console, click <strong id="lts_04_0009__en-us_topic_0178020380_b1832175112534">Log Management</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li1277132885510">In the log group list, click the name of a log group.</li><li id="lts_04_0009__en-us_topic_0178020380_li1667373725615">In the log stream list, click the name of a log stream.<p id="lts_04_0009__en-us_topic_0178020380_p71071150141516"><a name="lts_04_0009__en-us_topic_0178020380_li1667373725615"></a><a name="en-us_topic_0178020380_li1667373725615"></a>Alternatively, click <strong id="lts_04_0009__en-us_topic_0178020380_b1787194281918">Search</strong> in the <strong id="lts_04_0009__en-us_topic_0178020380_b20871842101913">Operation</strong> column of the row containing the target log stream.</p>
</li><li id="lts_04_0009__en-us_topic_0178020380_li534063464610">In the upper right corner, select a time range.</li><li id="lts_04_0009__en-us_topic_0178020380_li15141443141518">On the displayed page, enter a keyword in the search box.</li><li id="lts_04_0009__en-us_topic_0178020380_li8515543171511">Click <span><img id="lts_04_0009__en-us_topic_0178020380_image13309161831615" src="en-us_image_0178020286.png"></span> to start searching.<p id="lts_04_0009__en-us_topic_0178020380_p139181858161">Logs that contain the keyword are displayed.</p>
</li></ol>
<div class="section" id="lts_04_0009__en-us_topic_0178020380_section987953011291"><h4 class="sectiontitle">Search Syntax and Examples</h4><p id="lts_04_0009__en-us_topic_0178020380_p123316109449"><strong id="lts_04_0009__en-us_topic_0178020380_b52971155165317">Search syntax:</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_04_0009__en-us_topic_0178020380_table3879103092911" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Search syntax</caption><thead align="left"><tr id="lts_04_0009__en-us_topic_0178020380_row1988013016293"><th align="left" class="cellrowborder" valign="top" width="22.67%" id="mcps1.3.3.3.2.3.1.1"><p id="lts_04_0009__en-us_topic_0178020380_p1880113018292">Filter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="77.33%" id="mcps1.3.3.3.2.3.1.2"><p id="lts_04_0009__en-us_topic_0178020380_p288053022914">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_04_0009__en-us_topic_0178020380_row18102748173810"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p1011135983816">Exact search by keyword</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p3250114016543">LTS searches for logs containing the exact keyword (case-sensitive) that you specify. A keyword is the word between two adjacent delimiters.</p>
<p id="lts_04_0009__en-us_topic_0178020380_p13043611552">You can add an asterisk (*) after a keyword, for example, <strong id="lts_04_0009__en-us_topic_0178020380_b13978190284">error*</strong>, if you are not familiar with delimiters.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row274904583818"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p191121959103817">Exact search by phrase</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p911295953810">LTS searches for logs containing the exact phrase (case-sensitive) that you specify.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row856819218393"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p1941532019394">&amp;&amp;</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p6415122017390">Intersection of search results.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row18116181720393"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p5415122011393">||</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p1241552018398">Union of search results.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row11880193012915"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p773413355128">AND</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p208801630122918">Intersection of search results.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row117341135101217"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p47341635101214">NOT</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p17341435151215">Logs that contain the keyword after <strong id="lts_04_0009__en-us_topic_0178020380_b381791224713">NOT</strong> are excluded.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row4881193011295"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p08817308299">*</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p4662134116131">Fuzzy search. The asterisk (*) can only be after a keyword to replace an unspecified number of characters.</p>
</td>
</tr>
<tr id="lts_04_0009__en-us_topic_0178020380_row1288123052914"><td class="cellrowborder" valign="top" width="22.67%" headers="mcps1.3.3.3.2.3.1.1 "><p id="lts_04_0009__en-us_topic_0178020380_p7881730192919">?</p>
</td>
<td class="cellrowborder" valign="top" width="77.33%" headers="mcps1.3.3.3.2.3.1.2 "><p id="lts_04_0009__en-us_topic_0178020380_p1588123092913">Fuzzy search. The question mark (?) can be put in the middle or at the end of a keyword to replace a character.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="lts_04_0009__en-us_topic_0178020380_note7621179193917"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_04_0009__en-us_topic_0178020380_p71352010396">Operators (such as <strong id="lts_04_0009__en-us_topic_0178020380_b19994201953813">&amp;&amp;</strong>, <strong id="lts_04_0009__en-us_topic_0178020380_b9701125143811">||</strong>, <strong id="lts_04_0009__en-us_topic_0178020380_b197359272383">AND</strong>, <strong id="lts_04_0009__en-us_topic_0178020380_b115901431133811">NOT</strong>, <strong id="lts_04_0009__en-us_topic_0178020380_b95688358383">*</strong>, <strong id="lts_04_0009__en-us_topic_0178020380_b10599637103814">?</strong>, and <strong id="lts_04_0009__en-us_topic_0178020380_b412742354610">:</strong>) contained in raw logs cannot be used to search for logs.</p>
</div></div>
<p id="lts_04_0009__en-us_topic_0178020380_p7120345194015">Search rules:</p>
<ul id="lts_04_0009__en-us_topic_0178020380_ul31158252309"><li id="lts_04_0009__en-us_topic_0178020380_li21153257304">Fuzzy search is supported.<p id="lts_04_0009__en-us_topic_0178020380_p71151025193010"><a name="lts_04_0009__en-us_topic_0178020380_li21153257304"></a><a name="en-us_topic_0178020380_li21153257304"></a>For example, if you enter <strong id="lts_04_0009__en-us_topic_0178020380_b51771827134915">error*</strong>, all logs containing <strong id="lts_04_0009__en-us_topic_0178020380_b1517712272493">error</strong> will be displayed and those start with <strong id="lts_04_0009__en-us_topic_0178020380_b1017812715492">error</strong> will be highlighted.</p>
</li></ul>
<ul id="lts_04_0009__en-us_topic_0178020380_ul206981549244"><li id="lts_04_0009__en-us_topic_0178020380_li11243146468">Searching using multiple key-value pairs is supported. The format is <em id="lts_04_0009__en-us_topic_0178020380_i1932516370819">key1:value1</em> <em id="lts_04_0009__en-us_topic_0178020380_i53016331981">key2:value2</em>.<p id="lts_04_0009__en-us_topic_0178020380_p1373616143462">For example, if you enter <strong id="lts_04_0009__en-us_topic_0178020380_b16004162476">casInstanceID:in* hostIP:x.x.x.x kkfa</strong>, the following is displayed:</p>
<pre class="screen" id="lts_04_0009__en-us_topic_0178020380_screen19279219124317">{
"casApplicationName": "app",
"casEnvironmentName": "env",
"hostName": "ecs-zc-xxxx",
"collectTime": "15838xxxxx",
"hostIP": "x.x.x.x",
"logContent": "4312341341341314 kkfa dfa\\n", (Keyword)
"appName": "testhshroma",
"casInstanceID": "ins-111",
"hostId": "b32dcfc0-615b-4de6-a796-dfccaxxxxxx",
"casComponentID": "com-111"
}</pre>
</li></ul>
<p id="lts_04_0009__en-us_topic_0178020380_p13881530172912"><strong id="lts_04_0009__en-us_topic_0178020380_b13271087419">Search examples:</strong></p>
<ul id="lts_04_0009__en-us_topic_0178020380_ul0649143215394"><li id="lts_04_0009__en-us_topic_0178020380_li245884103919">Search for logs containing <strong id="lts_04_0009__en-us_topic_0178020380_b282154082716">start</strong>: Enter <strong id="lts_04_0009__en-us_topic_0178020380_b158212404276">start</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li54585413399">Search for logs containing <strong id="lts_04_0009__en-us_topic_0178020380_b127781745112718">start to refresh</strong>: Enter <strong id="lts_04_0009__en-us_topic_0178020380_b1777874562710">start to refresh</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li117115384012">Search for logs containing both <strong id="lts_04_0009__en-us_topic_0178020380_b1164011620595">start</strong> and <strong id="lts_04_0009__en-us_topic_0178020380_b745814955920">unexpected</strong>: Enter <strong id="lts_04_0009__en-us_topic_0178020380_b9727174313598">start &amp;&amp; unexpected</strong> or <strong id="lts_04_0009__en-us_topic_0178020380_b189772006610">start AND unexpected</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li131711053114014">Search for logs containing <strong id="lts_04_0009__en-us_topic_0178020380_b54171443290">start</strong> or <strong id="lts_04_0009__en-us_topic_0178020380_b241710418293">unexpected</strong>: Enter <strong id="lts_04_0009__en-us_topic_0178020380_b9417448291">start || unexpected</strong>.</li></ul>
<ul id="lts_04_0009__en-us_topic_0178020380_ul78821530142917"><li id="lts_04_0009__en-us_topic_0178020380_li8305195511343">Search for the logs containing keyword <strong id="lts_04_0009__en-us_topic_0178020380_b10330937162918">start</strong> but not <strong id="lts_04_0009__en-us_topic_0178020380_b533663715291">unexpected</strong>: Enter <strong id="lts_04_0009__en-us_topic_0178020380_b133723782911">start NOT unexpected</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li118823304290"><strong id="lts_04_0009__en-us_topic_0178020380_b0442182410325">error*</strong>: logs that contain <strong id="lts_04_0009__en-us_topic_0178020380_b154423247323">error</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li13882133017290"><strong id="lts_04_0009__en-us_topic_0178020380_b1238916224395">er?or</strong>: logs that start with <strong id="lts_04_0009__en-us_topic_0178020380_b2389222183910">er</strong>, is followed by any single character, and end with <strong id="lts_04_0009__en-us_topic_0178020380_b163891522103910">or</strong>.</li><li id="lts_04_0009__en-us_topic_0178020380_li3802468914"><em id="lts_04_0009__en-us_topic_0178020380_i11392183419406">query1</em> <strong id="lts_04_0009__en-us_topic_0178020380_b639233414402">AND</strong> <em id="lts_04_0009__en-us_topic_0178020380_i17392103410406">query2</em> <strong id="lts_04_0009__en-us_topic_0178020380_b639273474011">NOT</strong> <em id="lts_04_0009__en-us_topic_0178020380_i103928342406">query3</em>: logs that contain both <em id="lts_04_0009__en-us_topic_0178020380_i5392934134015">query1</em> and <em id="lts_04_0009__en-us_topic_0178020380_i639293494013">query2</em> but not <em id="lts_04_0009__en-us_topic_0178020380_i3392183454017">query3</em>.</li></ul>
<div class="note" id="lts_04_0009__en-us_topic_0178020380_note113033143310"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_04_0009__en-us_topic_0178020380_ul1813013363310"><li id="lts_04_0009__en-us_topic_0178020380_li1130123113313">Keywords are case-sensitive.</li><li id="lts_04_0009__en-us_topic_0178020380_li19381926181211">The asterisk (*) and question mark (?) do not match special characters such as hyphens (-) and spaces.</li></ul>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0007.html">Log View</a></div>
</div>
</div>

View File

@ -0,0 +1,24 @@
<a name="lts_04_0010"></a><a name="lts_04_0010"></a>
<h1 class="topictitle1">Quick Search</h1>
<div id="body32001227"><p id="lts_04_0010__en-us_topic_0206300809_p1026082805216">To search for logs using a keyword repeatedly, perform the following operations to configure quick search.</p>
<div class="section" id="lts_04_0010__en-us_topic_0206300809_section58991525165110"><h4 class="sectiontitle">Procedure</h4><ol id="lts_04_0010__en-us_topic_0206300809_ol6569343163310"><li id="lts_04_0010__en-us_topic_0206300809_li3537165075418">Log in to the LTS console and choose <strong id="lts_04_0010__en-us_topic_0206300809_b171630477332">Log Management</strong>.</li><li id="lts_04_0010__en-us_topic_0206300809_li1277132885510">In the log group list, click the name of a log group.</li><li id="lts_04_0010__en-us_topic_0206300809_li1667373725615">In the log stream list, click the name of a log stream.<p id="lts_04_0010__en-us_topic_0206300809_p71071150141516"><a name="lts_04_0010__en-us_topic_0206300809_li1667373725615"></a><a name="en-us_topic_0206300809_li1667373725615"></a>Alternatively, click <strong id="lts_04_0010__en-us_topic_0206300809_b570192562519">Search</strong> in the <strong id="lts_04_0010__en-us_topic_0206300809_b16706192516250">Operation</strong> column of the row containing the target log stream.</p>
</li><li id="lts_04_0010__en-us_topic_0206300809_li2061317016203">On the log stream details page, click <strong id="lts_04_0010__en-us_topic_0206300809_b1776816144566">Add Quick Search</strong> and configure the <strong id="lts_04_0010__en-us_topic_0206300809_b3260122719256">Name</strong> and <strong id="lts_04_0010__en-us_topic_0206300809_b3164530172519">Keyword</strong> parameters.<div class="p" id="lts_04_0010__en-us_topic_0206300809_p95946422293"><ul id="lts_04_0010__en-us_topic_0206300809_ul23361538182918"><li id="lts_04_0010__en-us_topic_0206300809_li1336203816292">Set <strong id="lts_04_0010__en-us_topic_0206300809_b7273193910117">Name</strong>. A quick search name:<ul id="lts_04_0010__en-us_topic_0206300809_ul11336143842913"><li id="lts_04_0010__en-us_topic_0206300809_li103351138172914">Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).</li><li id="lts_04_0010__en-us_topic_0206300809_li73367387295">Cannot start with a period (.) or underscore (_), and cannot end with a period (.).</li><li id="lts_04_0010__en-us_topic_0206300809_li5336173814297">Can contain 1 to 64 characters.</li></ul>
</li><li id="lts_04_0010__en-us_topic_0206300809_li15336203832913">Set <strong id="lts_04_0010__en-us_topic_0206300809_b247712182918">Keyword</strong> to a keyword that will be frequently used, for example, <strong id="lts_04_0010__en-us_topic_0206300809_b18528175611455">error*</strong>.</li></ul>
</div>
</li><li id="lts_04_0010__en-us_topic_0206300809_li82763566286">Click <strong id="lts_04_0010__en-us_topic_0206300809_b16262411141313">OK</strong>.<p id="lts_04_0010__en-us_topic_0206300809_p1072320208291">Added query search filters are displayed next to <strong id="lts_04_0010__en-us_topic_0206300809_b4589105514819">Add Quick Search</strong>. Click the name of a quick search filter to view the search results.</p>
</li></ol>
</div>
<div class="section" id="lts_04_0010__en-us_topic_0206300809_section9981261620"><h4 class="sectiontitle">Viewing Context of a Log</h4><p id="lts_04_0010__en-us_topic_0206300809_p19257437581">You can check the log events generated before and after a log event for quick fault locating.</p>
<ol id="lts_04_0010__en-us_topic_0206300809_ol7613132317170"><li id="lts_04_0010__en-us_topic_0206300809_li15550133612283">Log in to the LTS console and choose <strong id="lts_04_0010__en-us_topic_0206300809_b715825316338">Log Management</strong>.</li><li id="lts_04_0010__en-us_topic_0206300809_li179270524312">In the log group list, click the name of a log group.</li><li id="lts_04_0010__en-us_topic_0206300809_li792815223110">In the log stream list, click the name of a log stream.<p id="lts_04_0010__en-us_topic_0206300809_p79286529311"><a name="lts_04_0010__en-us_topic_0206300809_li792815223110"></a><a name="en-us_topic_0206300809_li792815223110"></a>Alternatively, click <strong id="lts_04_0010__en-us_topic_0206300809_b89021612181418">Search</strong> in the <strong id="lts_04_0010__en-us_topic_0206300809_b5907191261418">Operation</strong> column of the row containing the target log stream.</p>
</li><li id="lts_04_0010__en-us_topic_0206300809_li149504278510">On the Original Logs tab page, click <strong id="lts_04_0010__en-us_topic_0206300809_b1662073110445">View Context</strong> in the row of a log event.<p id="lts_04_0010__en-us_topic_0206300809_p676510116173">The context of the log is displayed.</p>
<p id="lts_04_0010__en-us_topic_0206300809_p4521191718289"></p>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0007.html">Log View</a></div>
</div>
</div>

View File

@ -0,0 +1,17 @@
<a name="lts_04_0012"></a><a name="lts_04_0012"></a>
<h1 class="topictitle1">Agent Management</h1>
<div id="body1510910110928"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_02_0013.html">Installing ICAgent (Linux)</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_02_0014.html">Upgrading ICAgent</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_02_0015.html">Uninstalling ICAgent</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_04_0013.html">ICAgent Statuses</a></strong><br>
</li>
</ul>
</div>

View File

@ -0,0 +1,61 @@
<a name="lts_04_0013"></a><a name="lts_04_0013"></a>
<h1 class="topictitle1">ICAgent Statuses</h1>
<div id="body32001227"><p id="lts_04_0013__en-us_topic_0178020269_en-us_topic_0187475501_p131811729164818">The following table lists the ICAgent statuses.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="lts_04_0013__en-us_topic_0178020269_table918112917487" frame="border" border="1" rules="all"><caption><b>Table 1 </b>ICAgent statuses</caption><thead align="left"><tr id="lts_04_0013__en-us_topic_0178020269_row171827299483"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.3.1.1"><p id="lts_04_0013__en-us_topic_0178020269_p3182229114817">Status</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="80%" id="mcps1.3.2.2.3.1.2"><p id="lts_04_0013__en-us_topic_0178020269_p618218296482">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="lts_04_0013__en-us_topic_0178020269_row61827298484"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p318232914817">Running</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p11182202944819">ICAgent is running properly.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row16182329144820"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p218218298488">Uninstalled</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p31821629154819">ICAgent is not installed.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row18183429114819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p1418317292488">Installing</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p218352914486">ICAgent is being installed. This process takes about a minute.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row8183729134820"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p3183162915486">Installation failed</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p16183729134819">ICAgent installation failed.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row81831029164812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p718314293480">Upgrading</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p5183122994811">ICAgent is being upgraded. This process takes about a minute.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row1118342954813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p8183182919487">Upgrade failed</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p31831029144819">ICAgent upgrade failed.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row31831729154813"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p018319297483">Offline</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p3762150181010">Check for network faults and rectify such faults.</p>
</td>
</tr>
<tr id="lts_04_0013__en-us_topic_0178020269_row718332984814"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.3.1.1 "><p id="lts_04_0013__en-us_topic_0178020269_p141831029124817">Faulty</p>
</td>
<td class="cellrowborder" valign="top" width="80%" headers="mcps1.3.2.2.3.1.2 "><p id="lts_04_0013__en-us_topic_0178020269_p8183129104810">ICAgent is faulty. Contact technical support.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0012.html">Agent Management</a></div>
</div>
</div>

View File

@ -0,0 +1,13 @@
<a name="lts_04_0017"></a><a name="lts_04_0017"></a>
<h1 class="topictitle1">Appendixes</h1>
<div id="body1562746293109"></div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="lts_03_0015.html">How Do I Obtain an AK/SK Pair?</a></strong><br>
</li>
<li class="ulchildlink"><strong><a href="lts_03_0002.html">How Do I Install ICAgent by Creating an Agency?</a></strong><br>
</li>
</ul>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
var expandClassName="dropdownexpand";var collapseClassName="dropdowncollapse";var collapseTableClassName="dropdowncollapsetable";function ExpandorCollapseNode(a){a=a.parentNode;if(a.className==expandClassName){a.className=collapseClassName}else{a.className=expandClassName}}function ExpandorCollapseTableNode(a){a=a.parentNode;if(a.className==expandClassName){a.className=collapseTableClassName}else{a.className=expandClassName}}function ExpandorCollapseAllNodes(g,h,c){var a=g.getAttribute("title");var b=g.parentNode;if(a=="collapse"){g.setAttribute("title","expand");g.className="dropdownAllButtonexpand";g.innerHTML=h}else{g.setAttribute("title","collapse");g.className="dropdownAllButtoncollapse";g.innerHTML=c}var f=b.getElementsByTagName("*");for(var d=0;d<f.length;d++){var e=f[d];if(e.className.indexOf(expandClassName)!=-1||e.className.indexOf(collapseClassName)!=-1||e.className.indexOf(collapseTableClassName)!=-1){if(a=="collapse"){if(e.tagName.toLowerCase()=="table"){e.className=collapseTableClassName}else{e.className=collapseClassName}}else{e.className=expandClassName}}}}function ExpandForHref(f){if(null==f||"#"==f||"###"==f){return}var a=null;try{a=document.getElementById(f)}catch(d){}if(null==a||a.length==0){return}try{var b=a.parentNode;while(b!=null&&b.tagName!="body"){if(b.className==collapseClassName){b.className=expandClassName}b=b.parentNode}}catch(c){}}window.onload=function(){var b=document.getElementsByTagName("div");for(var c=0;c<b.length;c++){var j=b[c];if(j.className.indexOf(expandClassName)!=-1){j.className=collapseClassName}}var d=document.getElementsByTagName("a");try{for(var c=0;c<d.length;c++){var f=d[c];var h=f.getAttribute("href");if(h!=""&&h!=null){f.addEventListener("click",showHasConref,false)}}}catch(g){}};function showHasConref(b){var a=b.currentTarget.getAttribute("href");try{if(a!=null&&a!="#"&&a.lastIndexOf("#")>-1){ExpandForHref(a.substring(a.lastIndexOf("#")+1))}}catch(c){}};

Some files were not shown because too many files have changed in this diff Show More