Skip to content

Commit f7108a9

Browse files
authored
Specify format for date range query (#81025) (#81179)
1 parent e0f0269 commit f7108a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

x-pack/plugins/security_solution/common/detection_engine/get_query_filter.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ describe('get_filter', () => {
11121112
'@timestamp': {
11131113
gte: 'now-5m',
11141114
lte: 'now',
1115+
format: 'strict_date_optional_time',
11151116
},
11161117
},
11171118
},
@@ -1148,6 +1149,7 @@ describe('get_filter', () => {
11481149
'event.ingested': {
11491150
gte: 'now-5m',
11501151
lte: 'now',
1152+
format: 'strict_date_optional_time',
11511153
},
11521154
},
11531155
},
@@ -1183,6 +1185,7 @@ describe('get_filter', () => {
11831185
'@timestamp': {
11841186
gte: 'now-5m',
11851187
lte: 'now',
1188+
format: 'strict_date_optional_time',
11861189
},
11871190
},
11881191
},

x-pack/plugins/security_solution/common/detection_engine/get_query_filter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export const buildEqlSearchRequest = (
117117
[timestamp]: {
118118
gte: from,
119119
lte: to,
120+
format: 'strict_date_optional_time',
120121
},
121122
},
122123
},

0 commit comments

Comments
 (0)