步骤三:将Linux服务器添加为资产
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/vpc/nat/list" target="_blank" rel="external noopener">NAT网关控制台</a>,选择<span class="ph uicontrol">安全组</span>,单击日志审计服务器名称进入<span class="keyword wintitle">安全组详情</span>页面,
依次单击<span class="ph uicontrol">安全组规则</span>、<span class="ph uicontrol">添加安全组</span>进入<span class="keyword wintitle">添加规则</span>页面,放行需要发送日志的客户端IP与端口号,如下图所示。</span>
<div class="itemgroup info">
<img class="image" id="addLinux__image_yn5_hjn_prg" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222803112056-15c0d63c90f8.png" width="600">
<div class="note important note_important" id="addLinux__note_c1q_nzy_ysb"><span class="note__title">重要:</span> Syslog发送日志默认端口号为514,若资产发送日志使用的端口不是514,此处需要修改为资产发送日志使用的端口号与协议;授权IP即资产所在网段。其他配置项与上图保持一致即可。</div>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://www.ocftcloud.com/console/log-audit" target="_blank" rel="external noopener">安全日志审计SLA控制台</a>,进入<span class="keyword wintitle">实例列表</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击目标实例<span class="ph uicontrol"> 操作</span>列的<span class="ph uicontrol">管理</span>,进入安全日志审计控制台。</span>
<div class="itemgroup info">
<img class="image" id="addLinux__d80e53" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222803112057-1ecc508f988a.png" width="830">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在页面上边栏选择<span class="ph uicontrol">资产管理</span>,在左侧菜单栏选择<span class="ph menucascade"><span class="ph uicontrol">资产</span><abbr> > </abbr><span class="ph uicontrol">发现资产</span></span>,进入<span class="keyword wintitle">发现资产</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">找到IP均为是192.168.31.111的操作系统性能监控资产、数据库性能监控资产和日志源资产。</span>
<div class="itemgroup info">
<img class="image" id="addLinux__image_pkf_zz5_ssb" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222803112056-173a8b819ad1.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">对于日志源资产,选择相应的资产类型,单击<span class="ph uicontrol">确定</span>按钮,对于apm资产选择相应资产类型,并单击<span class="ph uicontrol">确定</span>按钮,选择相应的设备厂商、型号和版本,数据库的端口号、用户名和密码,之后再单击<span class="ph uicontrol">确定</span>按钮,如下图所示。</span>
<div class="itemgroup info">
<img class="image" id="addLinux__image_pkf_zz5_ssn" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222803112056-17e2f0959c0e.png" width="800">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">在左侧菜单栏选择<span class="keyword wintitle">全部资产</span>进入<span class="keyword wintitle">全部资产</span>页面,中可以看到刚添加的性能监控资产和日志源资产。</span>
<div class="itemgroup info">
<img class="image" id="addLinux__image_pkf_zz5_ssm" src="https://obs-cn-shanghai.ocftcloud.com/pacloud/20222803112056-16a9477b97a3.png" width="800">
</div>
</li></ol></section>
<section class="section postreq" id="addLinux__postreq_e1r_g55_ssb"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div>
<p class="p">添加资产完成后,您需要继续完成以下步骤:</p>
<ul class="ul" id="addLinux__ul_nm4_4t5_ssb">
<li class="li"><a class="xref" href="https://www.ocftcloud.com/ssr/help/security/LogAudit/quickstart.addAsset.LinuxDevice.result" target="_blank" rel="external noopener">步骤四:验证资产是否添加成功</a></li>
</ul>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!