Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-09 14:55:21 +00:00

43 lines
3.3 KiB
HTML

<a name="mrs_01_0393"></a><a name="mrs_01_0393"></a>
<h1 class="topictitle1">Viewing Flume Client Logs</h1>
<div id="body1589421630493"><div class="section" id="mrs_01_0393__s88b8fc71cd3c4276927db4939b8a37f0"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0393__a5e7b77dc297b4e1a9821f776cdf01de2">You can view logs to locate faults.</p>
</div>
<div class="section" id="mrs_01_0393__sb980112ef4d54a0997f7fee16dc03429"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_0393__ad6f8d9f105c641a2a94fd7aedd290e53">The Flume client has been installed.</p>
</div>
<div class="section" id="mrs_01_0393__se8f235e94bb24254a4cbca932c4b647d"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0393__ob4733c5716f14f57b8fb03af6d1115ab"><li id="mrs_01_0393__l8851776110254e1aaee6b74e874509a9"><span>Go to the Flume client log directory (<span class="filepath" id="mrs_01_0393__fa4bc6683206d4a6fb70d20f35b9b6473"><b>/var/log/Bigdata</b></span> by default).</span></li><li id="mrs_01_0393__l996c1d14224542539ff371be9e0267b1"><span>Run the following command to view the log file:</span><p><p id="mrs_01_0393__a3e7b3054e74f4ae9bd0e68d2d3d0ba5a"><strong id="mrs_01_0393__ac96f17763add4388a080952ac948abfc">ls -lR flume-client-*</strong></p>
<p id="mrs_01_0393__a11185797bf6e4737819cbdc6d5b4d10c">A log file is shown as follows:</p>
<pre class="screen" id="mrs_01_0393__s62a336e99ce14050b249b24385d3b145">flume-client-1/flume:
total 7672
-rw-------. 1 root root 0 Sep 8 19:43 Flume-audit.log
-rw-------. 1 root root 1562037 Sep 11 06:05 FlumeClient.2017-09-11_04-05-09.[1].log.zip
-rw-------. 1 root root 6127274 Sep 11 14:47 FlumeClient.log
-rw-------. 1 root root 2935 Sep 8 22:20 flume-root-20170908202009-pid72456-gc.log.0.current
-rw-------. 1 root root 2935 Sep 8 22:27 flume-root-20170908202634-pid78789-gc.log.0.current
-rw-------. 1 root root 4382 Sep 8 22:47 flume-root-20170908203137-pid84925-gc.log.0.current
-rw-------. 1 root root 4390 Sep 8 23:46 flume-root-20170908204918-pid103920-gc.log.0.current
-rw-------. 1 root root 3196 Sep 9 10:12 flume-root-20170908215351-pid44372-gc.log.0.current
-rw-------. 1 root root 2935 Sep 9 10:13 flume-root-20170909101233-pid55119-gc.log.0.current
-rw-------. 1 root root 6441 Sep 9 11:10 flume-root-20170909101631-pid59301-gc.log.0.current
-rw-------. 1 root root 0 Sep 9 11:10 flume-root-20170909111009-pid119477-gc.log.0.current
-rw-------. 1 root root 92896 Sep 11 13:24 flume-root-20170909111126-pid120689-gc.log.0.current
-rw-------. 1 root root 5588 Sep 11 14:46 flume-root-20170911132445-pid42259-gc.log.0.current
-rw-------. 1 root root 2576 Sep 11 13:24 prestartDetail.log
-rw-------. 1 root root 3303 Sep 11 13:24 startDetail.log
-rw-------. 1 root root 1253 Sep 11 13:24 stopDetail.log
flume-client-1/monitor:
total 8
-rw-------. 1 root root 141 Sep 8 19:43 flumeMonitorChecker.log
-rw-------. 1 root root 2946 Sep 11 13:24 flumeMonitor.log</pre>
<p id="mrs_01_0393__a9cb43961a0de41c7a8e647531d81b9b8">In the log file, <strong id="mrs_01_0393__af23ad38a3975478899862bc610f6ca75">FlumeClient.log</strong> is the run log of the Flume client.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0390.html">Using Flume</a></div>
</div>
</div>