Skip to content

Commit c01d094

Browse files
[Entity Store] Change default log cap behavior to drop (#270180)
## Summary Change default log cap behavior from `defer` to `drop` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
1 parent baa10e4 commit c01d094

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

oas_docs/output/kibana.serverless.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76741,7 +76741,7 @@ paths:
7674176741
minimum: 0
7674276742
type: integer
7674376743
maxLogsPerWindowCapBehavior:
76744-
default: defer
76744+
default: drop
7674576745
enum:
7674676746
- defer
7674776747
- drop

oas_docs/output/kibana.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81950,7 +81950,7 @@ paths:
8195081950
minimum: 0
8195181951
type: integer
8195281952
maxLogsPerWindowCapBehavior:
81953-
default: defer
81953+
default: drop
8195481954
enum:
8195581955
- defer
8195681956
- drop

x-pack/solutions/security/plugins/entity_store/server/domain/logs_extraction/ccs_logs_extraction_client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('CcsLogsExtractionClient', () => {
8080
// behavior is exercised by the dedicated tests at the end of this describe block.
8181
maxTimeWindowSize: '999d',
8282
maxLogsPerWindow: 0,
83-
maxLogsPerWindowCapBehavior: 'defer' as const,
83+
maxLogsPerWindowCapBehavior: 'drop' as const,
8484
};
8585

8686
beforeEach(() => {

x-pack/solutions/security/plugins/entity_store/server/domain/logs_extraction/logs_extraction_client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ describe('LogsExtractionClient', () => {
943943
delay: '1m',
944944
maxTimeWindowSize: '999d',
945945
maxLogsPerWindow: overrides.maxLogsPerWindow,
946-
maxLogsPerWindowCapBehavior: overrides.maxLogsPerWindowCapBehavior ?? 'defer',
946+
maxLogsPerWindowCapBehavior: overrides.maxLogsPerWindowCapBehavior ?? 'drop',
947947
}),
948948
} as EntityStoreGlobalState;
949949
mockGlobalStateClient.find.mockResolvedValue(globalState);

x-pack/solutions/security/plugins/entity_store/server/domain/saved_objects/global_state/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const LOG_EXTRACTION_TIMEOUT_DEFAULT = '59s';
2020
export const LOG_EXTRACTION_MAX_TIME_WINDOW_SIZE_DEFAULT = '15m';
2121
// Max total raw log documents to process per task run; 0 = no cap
2222
export const LOG_EXTRACTION_MAX_LOGS_PER_WINDOW_DEFAULT = 500_000;
23-
export const LOG_EXTRACTION_CAP_BEHAVIOR_DEFAULT = 'defer' as const;
23+
export const LOG_EXTRACTION_CAP_BEHAVIOR_DEFAULT = 'drop' as const;
2424

2525
export type LogExtractionConfig = z.infer<typeof LogExtractionConfig>;
2626
export const LogExtractionConfig = z.object({

0 commit comments

Comments
 (0)