Skip to content

Commit 81ce58a

Browse files
committed
Proper indicies selectors
1 parent 99175e8 commit 81ce58a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • x-pack/plugins/osquery/server/search_strategy/osquery

x-pack/plugins/osquery/server/search_strategy/osquery/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ export const osquerySearchStrategyProvider = <T extends FactoryQueryTypes>(
3737
return forkJoin({
3838
actionsIndexExists: esClient.asInternalUser.indices.exists({
3939
index: `${ACTIONS_INDEX}*`,
40+
allow_no_indices: false,
41+
expand_wildcards: 'all',
4042
}),
4143
newDataStreamIndexExists: esClient.asInternalUser.indices.exists({
4244
index: `${ACTION_RESPONSES_DATA_STREAM_INDEX}*`,
45+
allow_no_indices: false,
46+
expand_wildcards: 'all',
4347
}),
4448
}).pipe(
4549
mergeMap(({ actionsIndexExists, newDataStreamIndexExists }) => {

0 commit comments

Comments
 (0)