mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
esArchiver delete auto-created v2 migration indices like .kibana_8.0.0
This commit is contained in:
parent
a9a935558c
commit
aba78bdb0f
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ export async function migrateKibanaIndex({
|
|||
async function fetchKibanaIndices(client: Client) {
|
||||
const kibanaIndices = await client.cat.indices({ index: '.kibana*', format: 'json' });
|
||||
const isKibanaIndex = (index: string) =>
|
||||
/^\.kibana(:?_\d*)?$/.test(index) || /^\.kibana_(pre)*\d+\.\d+\.\d+_\d\d\d$/.test(index);
|
||||
/^\.kibana(:?_\d*)?$/.test(index) || /^\.kibana_(pre)*\d+\.\d+\.\d+/.test(index);
|
||||
return kibanaIndices.map((x: { index: string }) => x.index).filter(isKibanaIndex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue