Files
doc-exports/docs/mrs/umn/admin_guide_000074.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-05-16 09:40:21 +00:00

147 lines
16 KiB
HTML

<a name="admin_guide_000074"></a><a name="admin_guide_000074"></a>
<h1 class="topictitle1">Log Online Search</h1>
<div id="body1536721172746"><div class="section" id="admin_guide_000074__section52877372"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000074__p8474815"><span id="admin_guide_000074__text15946118176">MRS</span> Manager allows you to search for logs online and view the log content of components to locate faults.</p>
</div>
<div class="section" id="admin_guide_000074__section132341312125817"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000074__ol65684132"><li id="admin_guide_000074__li54286279"><span>Log in to <span id="admin_guide_000074__text11390351104411">MRS</span> Manager.</span></li><li id="admin_guide_000074__li333383617849"><span>Choose <strong id="admin_guide_000074__b14533123013467">O&amp;M</strong> &gt; <strong id="admin_guide_000074__b74538324468">Log</strong> &gt; <strong id="admin_guide_000074__b5685122744618">Online Search</strong>.</span></li><li id="admin_guide_000074__li39372518511"><span>Configure the parameters listed in <a href="#admin_guide_000074__table14922145885914">Table 1</a> to search for the logs you need. You can select a default log search duration (including <strong id="admin_guide_000074__b11857185275516">0.5h</strong>, <strong id="admin_guide_000074__b1991018548555">1h</strong>, <strong id="admin_guide_000074__b0321105716555">2h</strong>, <strong id="admin_guide_000074__b1910214591557">6h</strong>, <strong id="admin_guide_000074__b161128155615">12h</strong>, <strong id="admin_guide_000074__b202907395615">1d</strong>, <strong id="admin_guide_000074__b1034618611567">1w</strong>, and <strong id="admin_guide_000074__b1370731125615">1m</strong>), or click <span><img id="admin_guide_000074__image519271310317" src="en-us_image_0000001442413841.png"></span> to customize <span class="parmname" id="admin_guide_000074__parmname6216114203418"><b>Start Data</b></span> and <span class="parmname" id="admin_guide_000074__parmname277893510348"><b>End Data</b></span>.</span><p>
<div class="tablenoborder"><a name="admin_guide_000074__table14922145885914"></a><a name="table14922145885914"></a><table cellpadding="4" cellspacing="0" summary="" id="admin_guide_000074__table14922145885914" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Log search parameters</caption><thead align="left"><tr id="admin_guide_000074__row17922185819597"><th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.2.2.3.2.1.2.3.1.1"><p id="admin_guide_000074__p493918585593">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="86%" id="mcps1.3.2.2.3.2.1.2.3.1.2"><p id="admin_guide_000074__p893955835911">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="admin_guide_000074__row1939185875911"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p129391758115911">Search Content</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p id="admin_guide_000074__p1793912585591">Keywords or regular expression to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row5939115815917"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p2093916581592">Service</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p id="admin_guide_000074__p1093975812593">Service or module for which you want to query logs</p>
</td>
</tr>
<tr id="admin_guide_000074__row11907111211317"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p590731220318">File</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p id="admin_guide_000074__p390710123314">Log files to be searched for when only one role is selected</p>
</td>
</tr>
<tr id="admin_guide_000074__row3939145812593"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p18939165820597">Lowest Log Level</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p id="admin_guide_000074__p2044712713451">Lowest level of logs to be queried. After you select a level, the logs of this level and higher levels are displayed.</p>
<p id="admin_guide_000074__p0939155814593">The levels in ascending order are as follows:</p>
<p id="admin_guide_000074__p1851852204317">TRACE &lt; DEBUG &lt; INFO &lt; WARN &lt; ERROR &lt; FATAL</p>
</td>
</tr>
<tr id="admin_guide_000074__row11939165812590"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p139391758115916">Host Scope</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><ul id="admin_guide_000074__ul1535102214614"><li id="admin_guide_000074__li3767221150">You can click <span><img id="admin_guide_000074__image459216531466" src="en-us_image_0000001442773597.png"></span> to select hosts.</li><li id="admin_guide_000074__li1953516223469">Enter the host name of the node for which you want to query logs or the IP address of the management plane.</li><li id="admin_guide_000074__li25351922194618">Use commas (,) to separate IP addresses, for example, <strong id="admin_guide_000074__b2129239884114448">192.168.10.10</strong>,<strong id="admin_guide_000074__b927891619114448">192.168.10.11</strong>.</li><li id="admin_guide_000074__li145351822194613">Use hyphens (-) to indicate an IP address segment if the IP addresses are consecutive, for example, <strong id="admin_guide_000074__b484037859114448">192.168.10.[10-20]</strong>.</li><li id="admin_guide_000074__li1753552274611">Use hyphens (-) to indicate an IP address segment if the IP addresses are consecutive, and use commas (,) to separate IP address segments, for example, <strong id="admin_guide_000074__b534656035114448">192.168.10.[10-20,30-40]</strong>.<div class="note" id="admin_guide_000074__note19849151311485"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="admin_guide_000074__ul53616270487"><li id="admin_guide_000074__li236172764820">If this parameter is not specified, all hosts are selected by default.</li><li id="admin_guide_000074__li18708143213488">A maximum of 10 expressions can be entered at a time.</li><li id="admin_guide_000074__li9102105474812">A maximum of 2,000 hosts can be matched for all entered expressions at a time.</li></ul>
</div></div>
</li></ul>
</td>
</tr>
<tr id="admin_guide_000074__row19939195875910"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p id="admin_guide_000074__p0939175810593">Advanced Configurations</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><ul id="admin_guide_000074__ul19670203508"><li id="admin_guide_000074__li26703035018"><strong id="admin_guide_000074__b203625775114448">Max Quantity</strong>: maximum number of logs that can be displayed at a time. If the number of queried logs exceeds the value of this parameter, the earliest logs will be ignored. If this parameter is not set, the maximum number of logs that can be displayed at a time is not limited.</li><li id="admin_guide_000074__li186121313125118"><strong id="admin_guide_000074__b154411158152217">Timeout Duration</strong>: log query timeout duration. This parameter is used to limit the maximum log query time on each node. When the query times out, the query is stopped and the logs that have been searched for are still displayed.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="admin_guide_000074__li920814118"><span>Click <span class="uicontrol" id="admin_guide_000074__uicontrol182012143113"><b>Search</b></span>. <a href="#admin_guide_000074__table92081419119">Table 2</a> describes the fields in search results.</span><p>
<div class="tablenoborder"><a name="admin_guide_000074__table92081419119"></a><a name="table92081419119"></a><table cellpadding="4" cellspacing="0" summary="" id="admin_guide_000074__table92081419119" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in search results</caption><thead align="left"><tr id="admin_guide_000074__row162051417116"><th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.2.2.4.2.1.2.3.1.1"><p id="admin_guide_000074__p6201314016">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="86%" id="mcps1.3.2.2.4.2.1.2.3.1.2"><p id="admin_guide_000074__p19201814811">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="admin_guide_000074__row32016144117"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p162018141211">Time</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p4202143113">Time when a line of log is generated</p>
</td>
</tr>
<tr id="admin_guide_000074__row179671220163220"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p18968182073212">Source Cluster</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p6968320193218">Cluster for which the log is generated</p>
</td>
</tr>
<tr id="admin_guide_000074__row620314419"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p17201914910">Host Name</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p0209146111">Host name of the node where the log file recording the line of log is located</p>
</td>
</tr>
<tr id="admin_guide_000074__row122061411115"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p202017144115">Location</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p1545422577">Path of the log file recording the line of log</p>
<p id="admin_guide_000074__p9207141213">Click the location information to go to the online log browsing page. By default, 100 lines of logs before and 100 lines after the line of log are displayed. You can click <strong id="admin_guide_000074__b15843125543210">Load More</strong> on the top or bottom of the page to view more logs. Click <span class="uicontrol" id="admin_guide_000074__uicontrol1033194713620"><b>Download</b></span> to download the log file to the local PC.</p>
</td>
</tr>
<tr id="admin_guide_000074__row3208145111"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p1120121416117">Line No.</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p1720111411112">Line number of a line of log in the log file</p>
</td>
</tr>
<tr id="admin_guide_000074__row18203148119"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p142020141113">Level</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p132011146111">Level of the line of log</p>
</td>
</tr>
<tr id="admin_guide_000074__row142061417117"><td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="admin_guide_000074__p152013149112">Log</p>
</td>
<td class="cellrowborder" valign="top" width="86%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="admin_guide_000074__p12014141412">Log content</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="admin_guide_000074__note19134851133312"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000074__p10134155111336">You can click <strong id="admin_guide_000074__b87051359113414">Stop</strong> to forcibly stop the search. You can view the search results in the list.</p>
</div></div>
</p></li><li id="admin_guide_000074__li6783337135510"><span>Click <span class="uicontrol" id="admin_guide_000074__uicontrol879340191414"><b>Filter</b></span> to filter the logs to display on the page. <a href="#admin_guide_000074__table5795173012197">Table 3</a> lists the fields that you can use to filter logs. After you configure these parameters, click <strong id="admin_guide_000074__b417566958114448">Filter</strong> to search for logs meeting the search criteria. You can click <strong id="admin_guide_000074__b89275114114448">Reset</strong> to clear the information that you have filled in.</span><p>
<div class="tablenoborder"><a name="admin_guide_000074__table5795173012197"></a><a name="table5795173012197"></a><table cellpadding="4" cellspacing="0" summary="" id="admin_guide_000074__table5795173012197" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters for filtering logs</caption><thead align="left"><tr id="admin_guide_000074__row1281015302196"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.5.2.1.2.3.1.1"><p id="admin_guide_000074__p12810113012194">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.2.2.5.2.1.2.3.1.2"><p id="admin_guide_000074__p481017303194">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="admin_guide_000074__row158101330191914"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p178101030111913">Keywords</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p181023091919">Keywords of the losg to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row1081015309199"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p681073018194">Host Name</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p3810130171911">Name of the host to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row16810133021915"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p1281063021914">Location</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p18810143071917">Path of the log file to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row1781063013193"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p1981033011196">Started</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p1581015307199">Start time for logs to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row796993973311"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p3969539113310">Completed</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p1088912210343">End time for logs to be searched for</p>
</td>
</tr>
<tr id="admin_guide_000074__row1466113493310"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.2.1.2.3.1.1 "><p id="admin_guide_000074__p166611348331">Source Cluster</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.2.1.2.3.1.2 "><p id="admin_guide_000074__p466113493319">Cluster for which logs need to be searched</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000073.html">Log</a></div>
</div>
</div>