Applying slowlog setting on daily rotated search index

My team currently own an Elasticsearch with daily rotated index. The index name changes once the daily rotation completes, and hence it requires to have slowlog threshold configured after each daily rotation completes.

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?

I hope you are using index template for creating rotated or rolling indices and not creating manully or from custom code.

If you are using index teamplate then you can specify slow log configuration in setting object of index template API.

Thanks, this is a search index generated by Magento2(an e-commerce software package) code base.

Magento2 loads product information from a database and generates search index based on the information stored on that database.

I took a quick look at the API but wasn't able to find the exact index template. Will need to dig deeper into what is going on.


Sure. Please check and post comment if you have any doubt.

FYI, I was able to solve this issue by adding code on magento2 plugin. (Magento\Elasticsearch\Model\Adapter\Index\Builder)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.