创建索引
<p class="shortdesc">本文主要介绍如何创建存储日志的逻辑单元:索引。</p>
<section class="section attention" id="Create_Index__nht_xpy_wmb"><div class="tasklabel"><h2 class="doc-tairway">注意事项</h2></div>
<p class="p">索引创建成功后,不支持修改。</p>
</section>
<section class="section limitation" id="Create_Index__oht_xpy_wmb"><div class="tasklabel"><h2 class="doc-tairway">使用限制</h2></div>
<ol class="ol" id="Create_Index__ol_bfh_1qy_wmb">
<li class="li">每个用户在每个地域最多可以创建一个索引。</li>
<li class="li">索引中日志数据保存的时间小于等于30天。</li>
</ol>
</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" rel="external noopener">日志服务管理控制台</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 class="ph uicontrol">创建索引</span>,进入<span class="keyword wintitle">创建索引</span>页面。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">根据如下信息,创建索引。</span>
<div class="itemgroup info">
<table class="table" id="Create_Index__table_ogt_qqy_wmb"><caption></caption><colgroup><col><col><col></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="Create_Index__table_ogt_qqy_wmb__entry__1" colspan="2">配置项</th>
<th class="entry" id="Create_Index__table_ogt_qqy_wmb__entry__2">说明</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 " rowspan="3">
<p class="p">基本信息</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 ">
<p class="p">地域</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__2 ">
<p class="p">创建索引的地域。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 ">
<p class="p">名称</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__2 ">
<p class="p">配置索引的名称。</p>
<ul class="ul" id="Create_Index__ul_pgt_qqy_wmb">
<li class="li">支持汉字、英文大小写字母、数字、特殊字符“_”“-”“@”。</li>
<li class="li">长度在1~45个字符之间。</li>
</ul>
</td>
</tr>
<tr class="row">
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 ">
<p class="p">保存天数</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__2 ">
<p class="p">采集的日志数据在索引中的保存天数,单位是天。</p>
<p class="p">超过配置的保存天数,日志数据自动删除。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 ">
<p class="p">购买选项</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__1 ">
<p class="p">付费方式</p>
</td>
<td class="entry" headers="Create_Index__table_ogt_qqy_wmb__entry__2 ">
<p class="p">使用索引的付费方式,详见<a class="xref" href="/ssr/help/middleware/LogCloud/Pricing.Billing" target="_blank" rel="external noopener">计费说明</a>,目前仅支持<span class="ph uicontrol">按使用量</span>付费。</p>
</td>
</tr>
</tbody></table>
<img class="image" id="Create_Index__image_elz_2ry_wmb" src="https://obs-cn-shanghai.pinganyun.com/pcp-portal/20241101103939-1946b79a9a6c.png" width="830">
</div>
</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 class="ph uicontrol">确认开通</span>,进入<span class="keyword wintitle">支付结果</span>页面。</span>
<div class="itemgroup info">
<div class="note note note_note"><span class="note__title">说明:</span> 请确保您的真实余额或可用代金券余额超过200元。</div>
</div>
</li></ol></section>
<section class="section result" id="Create_Index__result_rqw_4ry_wmb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p"><strong class="ph b">方法一</strong></p>
<ol class="ol" id="Create_Index__ol_yh3_pry_wmb">
<li class="li">在<span class="keyword wintitle">支付结果</span>页面,单击<span class="ph uicontrol">查看订单</span>,进入<span class="keyword wintitle">产品订单</span>页面。</li>
<li class="li">目标订单的<span class="ph uicontrol">状态</span>为<span class="ph uicontrol">全部完成</span>。<img class="image" id="Create_Index__image_cm5_rry_wmb" src="https://obs-cn-shanghai.pinganyun.com/pcp-portal/20241101103939-18ea38929465.png" width="830"></li>
</ol>
<p class="p"><strong class="ph b">方法二</strong></p>
<p class="p">单击左侧导航栏<span class="ph uicontrol">索引管理</span>,在<span class="keyword wintitle">索引列表</span>页面,选择目标地域,可查看到刚刚创建的索引。 </p>
<img class="image" id="Create_Index__image_pn2_5ry_wmb" src="https://obs-cn-shanghai.pinganyun.com/pcp-portal/20241101103939-1e861e97930d.png" width="830">
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!