Log Service provides the reindexing feature that you can use to configure or modify indexes for historical data. You can reindex the logs of a specified time range for a Logstore based on the most recent indexing rules. This topic describes how to reindex logs for a Logstore in the Log Service console.
The indexing feature is enabled. For more information, see Create indexes.
You can reindex only the logs that are generated within 15 minutes to 30 days earlier than the current time.
You can create a maximum of 10 reindexing tasks.
You can run only one reindexing task at a time.
Additional indexing fees and storage fees are generated when you reindex logs. Indexing fees are generated only once and storage fees are generated on an hourly basis. The unit price of a reindex is the same as the unit price of an index. For more information, see Billable items of pay-by-feature.
After you delete a reindexing task, the new index data is also deleted, and you are no longer charged storage fees for the deleted index data.
Log on to the Simple Log Service console.
In the Projects section, click the project that you want to manage.
On the tab, click the Logstore that you want to manage.
In the Reindex panel, click Create Task.
In the dialog box that appears, configure the Task Name, Start Time and End Time parameters. Then, click OK.
The Start Time parameter specifies the time when Log Service starts to receive logs. The End Time parameter specifies the time when Log Service stops receiving logs. The start time and end time must be within 15 minutes to 30 days earlier than the current time.
After you create the task, you can view the reindexing progress. When the progress reaches 100%, the reindexing task is completed.Important
If historical data already has indexes, the new indexes overwrite the original indexes.
After you create a reindexing task, you can perform the following operations:
Stop the reindexing task.
In the Reindex panel, click Stop to stop the reindexing task.Warning
After you stop the reindexing task, you can delete the reindexing task but cannot start it again. Proceed with caution.
Delete the reindexing task
In the Reindex panel, click Delete to delete the reindexing task.Warning
After you delete the reindexing task, the new indexes are also deleted. Proceed with caution.