Updting host risk score index pattern (#122794)

This commit is contained in:
Apoorva Joshi 2022-01-12 09:24:44 -08:00 committed by GitHub
parent 9e5daa5e75
commit ee5b909934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -122,7 +122,7 @@ export const DATA_DATASETS_INDEX_PATTERNS = [
{ pattern: '*meow*', patternName: 'meow' },
// experimental ml
{ pattern: '*host_risk_score_latest', patternName: 'host_risk_score' },
{ pattern: 'ml_host_risk_score_latest_*', patternName: 'host_risk_score' },
] as const;
// Get the unique list of index patterns (some are duplicated for documentation purposes)

View file

@ -72,7 +72,8 @@ describe('get_data_telemetry', () => {
{ name: 'metricbeat-1234', docCount: 100, sizeInBytes: 10, isECS: false },
{ name: '.app-search-1234', docCount: 0 },
{ name: 'logs-endpoint.1234', docCount: 0 }, // Matching pattern with a dot in the name
{ name: 'ml_host_risk_score_latest', docCount: 0 },
{ name: 'ml_host_risk_score_latest_default', docCount: 0 },
{ name: 'ml_host_risk_score_latest', docCount: 0 }, // This should not match,
{ name: 'ml_host_risk_score', docCount: 0 }, // This should not match
// New Indexing strategy: everything can be inferred from the constant_keyword values
{