Skip to content

Commit e368651

Browse files
committed
Fixed due to comments
1 parent d05f379 commit e368651

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugins/event_log/server/es/names.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const createNamesMock = () => {
1010
const mock: jest.Mocked<EsNames> = {
1111
base: '.kibana',
1212
alias: '.kibana-event-log-8.0.0',
13-
ilmPolicy: '.kibana-event-log-policy',
13+
ilmPolicy: 'kibana-event-log-policy',
1414
indexPattern: '.kibana-event-log-*',
1515
indexPatternWithVersion: '.kibana-event-log-8.0.0-*',
1616
initialIndex: '.kibana-event-log-8.0.0-000001',

x-pack/plugins/event_log/server/es/names.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export function getEsNames(baseName: string): EsNames {
2424
const eventLogNameWithVersion = `${eventLogName}${EVENT_LOG_VERSION_SUFFIX}`;
2525
const eventLogPolicyName = `${
2626
baseName.startsWith('.') ? baseName.substring(1) : baseName
27-
}${EVENT_LOG_NAME_SUFFIX}`;
27+
}${EVENT_LOG_NAME_SUFFIX}-policy`;
2828
return {
2929
base: baseName,
3030
alias: eventLogNameWithVersion,
31-
ilmPolicy: `${eventLogPolicyName}-policy`,
31+
ilmPolicy: `${eventLogPolicyName}`,
3232
indexPattern: `${eventLogName}-*`,
3333
indexPatternWithVersion: `${eventLogNameWithVersion}-*`,
3434
initialIndex: `${eventLogNameWithVersion}-000001`,

0 commit comments

Comments
 (0)