Skip to content

Commit

Permalink
Show top n for authentications and threat indicator match rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed May 6, 2022
1 parent d2df97d commit 125d9d0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ const FAILURES_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
operator: IS_OPERATOR,
},
}}
isAggregatable={true}
fieldType={'keyword'}
render={(dataProvider, _, snapshot) =>
snapshot.isDragging ? (
<DragEffects>
Expand Down Expand Up @@ -185,6 +187,8 @@ const LAST_FAILED_DESTINATION_COLUMN: Columns<AuthenticationsEdges, Authenticati
attrName: 'host.name',
idPrefix: `authentications-table-${node._id}-lastFailureDestination`,
render: (item) => <HostDetailsLink hostName={item} />,
isAggregatable: true,
fieldType: 'ip',
}),
};

Expand Down Expand Up @@ -244,6 +248,8 @@ const SUCCESS_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
operator: IS_OPERATOR,
},
}}
isAggregatable={true}
fieldType={'keyword'}
render={(dataProvider, _, snapshot) =>
snapshot.isDragging ? (
<DragEffects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export const IndicatorDetails: React.FC<IndicatorDetailsProps> = ({
field={INDICATOR_MATCHED_TYPE}
isDraggable={isDraggable}
value={indicatorType}
isAggregatable={true}
fieldType={'keyword'}
/>
</EuiFlexItem>
)}
Expand All @@ -73,6 +75,8 @@ export const IndicatorDetails: React.FC<IndicatorDetailsProps> = ({
field={FEED_NAME}
isDraggable={isDraggable}
value={feedName}
isAggregatable={true}
fieldType={'keyword'}
/>
</EuiFlexItem>
</>
Expand All @@ -90,6 +94,8 @@ export const IndicatorDetails: React.FC<IndicatorDetailsProps> = ({
fieldName={INDICATOR_REFERENCE}
isDraggable={isDraggable}
value={indicatorReference}
isAggregatable={true}
fieldType={'keyword'}
/>
</EuiFlexItem>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const MatchDetails: React.FC<MatchDetailsProps> = ({
field={INDICATOR_MATCHED_FIELD}
isDraggable={isDraggable}
value={sourceField}
isAggregatable={true}
fieldType={'keyword'}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand All @@ -62,6 +64,8 @@ export const MatchDetails: React.FC<MatchDetailsProps> = ({
field={sourceField}
isDraggable={isDraggable}
value={sourceValue}
isAggregatable={true}
fieldType={'keyword'}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit 125d9d0

Please sign in to comment.