删除采集策略
<p class="shortdesc">本文主要介绍如何删除已创建的采集策略。</p>
<section class="section prereq" id="Delete_Strategy__prereq_tzb_dvz_wmb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<ol class="ol" id="Delete_Strategy__ol_rhr_dvz_wmb">
<li class="li">您已成功创建通用采集策略,或Nginx采集策略,可参考<a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Strategy" target="_blank">创建通用采集策略</a>或<a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Collect.Collect_Strategy.Create_Nginx_Strategy" target="_blank">创建Nginx采集策略</a>。</li>
<li class="li">若删除Nginx采集策略,请先删除相应的仪表盘,可参考<a class="xref" href="/ssr/help/middleware/LogCloud/User_Guide.Visualization.Delete_Dashboard" target="_blank">删除仪表盘</a>。</li>
</ol>
</section>
<section class="section attention" id="Delete_Strategy__attention_jcq_gvz_wmb"><div class="tasklabel"><h2 class="doc-tairway">注意事项</h2></div>
<p class="p">以下情况,请注意也需要您手动删除已经不生效的采集策略:</p>
<p class="p">应用采集策略的设备(即待采集日志的设备),由于服务到期或其他原因导致该主机组内:</p>
<ul class="ul" id="Delete_Strategy__ul_djs_hvz_wmb">
<li class="li">所有设备均不存在时,这些设备所对应的采集策略将失效,您需要在日志服务管理控制台手动删除这些不生效的采集策略。</li>
<li class="li">部分设备不存在时,无影响。</li>
</ul>
</section>
<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="/console/logcloud/indexed/list" target="_blank">日志服务管理控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">项目管理</span>,进入<span class="keyword wintitle">项目列表</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">选择目标地域,单击目标项目名称。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="keyword wintitle">AGENT配置</span>页签。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击目标采集策略<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">删除</span>,进入<span class="keyword wintitle">删除Agent配置</span>页面。</span>
<div class="itemgroup info">
<img class="image" id="Delete_Strategy__image_pzd_nwz_wmb" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20210106133702-1a0f19ca9f50.png" width="830">
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">确定</span>。</span>
</li></ol></section>
<section class="section result" id="Delete_Strategy__result_vkg_4wz_wmb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<ul class="ul" id="Delete_Strategy__ul_gvh_4wz_wmb">
<li class="li">在<span class="keyword wintitle">AGENT配置</span>页签下方,提示<span class="ph uicontrol">操作成功</span>。</li>
<li class="li">在<span class="keyword wintitle">AGENT配置</span>页签, 无目标采集策略的相关信息。</li>
</ul>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!