How to delete logs from Aria Operations for Logs that were sent at specific dates?
VMware Aria Operations for Logs 8.10.2 and newer
In the UI, the oldest logs can be removed by specifying a retention period for an Index Partition using the documentation below, but there is no mechanism in the UI to remove buckets ingested at specific dates if they are not the oldest logs.
NOTE: Before proceeding make sure to take a snapshot of all of the log insight cluster nodes from the same point in time, excluding memory. Please be sure that there are also good backups that can be restored if required. Please see Backup Nodes and Clusters for more information. Remove the snapshots once they are confirmed to no longer be needed by successful cluster startup and operation.
systemctl stop loginsight
/etc/init.d/loginsight status
Note: The expected output when the service is successfully stopped is Failed to obtain the client socket.
/lib/loginsight/application/sbin/bucket-tools --delete createdStart=2019-10-14 createdEnd=2019-10-20
Note: Modify the createdStart and createdEnd values to match the desired time range. The format is YYYY-MM-DD where YYYY is the 4 digit year, MM is the 2 digit month, and DD is the 2 digit day
systemctl start loginsight
Connected
. In a Single node cluster, the availability of the UI confirms the successful completion of step 6.