mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solution][Alerts] Don't use maxSignals for topHits agg size (#146564)
## Summary Addresses https://github.com/elastic/kibana/issues/146494 We only need the first document from the bucket to create the alert, not `maxSignals` documents. If `maxSignals` was greater than 100, this caused an error in the search.
This commit is contained in:
parent
9ad78b244a
commit
d659ee6f2e
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ Object {
|
|||
},
|
||||
"topHits": Object {
|
||||
"top_hits": Object {
|
||||
"size": 100,
|
||||
"size": 1,
|
||||
"sort": Array [
|
||||
Object {
|
||||
"kibana.combined_timestamp": Object {
|
||||
|
|
|
@ -31,7 +31,7 @@ export const buildGroupByFieldAggregation = ({
|
|||
aggs: {
|
||||
topHits: {
|
||||
top_hits: {
|
||||
size: maxSignals,
|
||||
size: 1,
|
||||
sort: [
|
||||
{
|
||||
[aggregatableTimestampField]: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue