doc-exports/docs/css/umn/css_02_0067.html
Zheng, Xiu 5b5876528a CSS UMN 22.5.1 Version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2023-03-29 17:17:49 +00:00

19 lines
2.4 KiB
HTML

<a name="css_02_0067"></a><a name="css_02_0067"></a>
<h1 class="topictitle1">How Do I Clear Expired Data to Release Storage Space?</h1>
<div id="body39451090"><ul id="css_02_0067__ul186955305406"><li id="css_02_0067__li17937454203419">Run the following command to delete a single index data record.<p id="css_02_0067__p169821556123415"><a name="css_02_0067__li17937454203419"></a><a name="li17937454203419"></a><strong id="css_02_0067__b167213411505">curl -XDELETE http://</strong><strong id="css_02_0067__b12933211">IP</strong><strong id="css_02_0067__b1714725114591">:9200/</strong><em id="css_02_0067__i1186724109104747">Index_name</em></p>
<div class="note" id="css_02_0067__note146673373620"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_02_0067__p116733353617"><strong id="css_02_0067__b104601939918">IP</strong>: the IP address of any node in the cluster</p>
</div></div>
</li><li id="css_02_0067__li13958164254014">Run the following command to delete all Logstash data of a day. For example, delete all data on June 19, 2017:<p id="css_02_0067__p151372645412"><a name="css_02_0067__li13958164254014"></a><a name="li13958164254014"></a>For a cluster in non-security mode: <b><span class="cmdname" id="css_02_0067__cmdname12818114125410">curl -XDELETE 'http://IP:9200/logstash-2017.06.19*'</span></b></p>
<p id="css_02_0067__p148492149542">For a cluster in security mode: <b><span class="cmdname" id="css_02_0067__cmdname72495104551">curl -XDELETE -u username:password 'https://IP:9200/logstash-2017.06.19' -k</span></b></p>
<div class="note" id="css_02_0067__note01025183919"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="css_02_0067__ul764818186391"><li id="css_02_0067__li13648121873912"><strong id="css_02_0067__b195887451303">username</strong>: username of the administrator. The default value is <strong id="css_02_0067__b1798715913119">admin</strong>.</li><li id="css_02_0067__li464572633910"><strong id="css_02_0067__b31249115110">password</strong>: the password set during cluster creation</li><li id="css_02_0067__li59961648165214"><strong id="css_02_0067__b19812165012114">IP</strong>: the IP address of any node in the cluster</li></ul>
</div></div>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0066.html">Resource Usage and Change</a></div>
</div>
</div>