Applying slowlog setting on daily rotated search index
My site currently uses elasticsearch for the catalog search backend, and would like to have slowlog configured to monitor long running queries. However, the index name changes once the daily rotation completes, and hence it requires to have slowlog threshold configured after each daily rotation.
What would be the best solution to ensure that every newly built index has slowlog threshold configured? Is there any way to automate this configuration step?