Skip to content

Commit

Permalink
esArchiver delete auto-created v2 migration indices like .kibana_8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Jan 21, 2021
1 parent a9a9355 commit aba78bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit aba78bd

Please sign in to comment.