Skip to content

[BUG] Query Insights exporter delete the local saved indices if customer disables the exporter #453

@bouhajer

Description

@bouhajer

What is the bug?

If you enable the exporter in Query insights, this will create a daily indices storing the top N queries. However, if you later disable the exporter, putting it to "None", this will delete all the historical indices previously created by the plugin.

How can one reproduce the bug?

Enable the exported in Query insights and then disable it.

What is the expected behavior?

Query insights exporter should not delete any historical indices created by the plugin before the end of retention period set by the customer. If needed, customers can manually delete the created indices.

What is your host/environment?

OpenSearch 3.1

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

The customer has already set the retention period for their indices, so the plugin should honour that period and not delete any indices before the end of that period.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3.4.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions