Log Service cannot configure indexes for historical logs directly. However, you can rewrite the logs into a new Logstore through DataWorks or use CLI commands to configure indexes as needed.
Rewrite data into a new Logstore through DataWorks and then configure indexes.
After configuring an index for the new Logstore, use DataWorks to export historical logs from the old Logstore and then import them to the new Logstore. By dong so, you can query and analyze historical logs.
Rewrite data into the Logstore through CLI commands and then configure indexes.
Use a command-line tool to rewrite logs into the Logstore to configure indexes.
For more information, see Aliyun Log Service CLI.