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?
Solved! Go to Solution.
Problem resolved.
It was possible to set these parameters by adding code to Elasticsearch\Model\Adapter\Index\Builder