-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SecuritySolution][Threat Hunting] Fix a couple of field ids for highlighted fields #124941
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,7 @@ | |
*/ | ||
|
||
import { find, isEmpty, uniqBy } from 'lodash/fp'; | ||
import { | ||
ALERT_RULE_NAMESPACE, | ||
ALERT_RULE_TYPE, | ||
ALERT_RULE_DESCRIPTION, | ||
} from '@kbn/rule-data-utils'; | ||
import { ALERT_RULE_NAMESPACE, ALERT_RULE_TYPE } from '@kbn/rule-data-utils'; | ||
|
||
import * as i18n from './translations'; | ||
import { BrowserFields } from '../../../../common/search_strategy/index_fields'; | ||
|
@@ -69,7 +65,7 @@ function getFieldsByCategory({ | |
{ id: 'process.name' }, | ||
]; | ||
case EventCategory.DNS: | ||
return [{ id: 'dns.query.name' }, { id: 'process.name' }]; | ||
return [{ id: 'dns.question.name' }, { id: 'process.name' }]; | ||
case EventCategory.REGISTRY: | ||
return [{ id: 'registry.key' }, { id: 'registry.value' }, { id: 'process.name' }]; | ||
case EventCategory.MALWARE: | ||
|
@@ -107,7 +103,7 @@ function getFieldsByEventCode( | |
switch (eventCode) { | ||
case EventCode.BEHAVIOR: | ||
return [ | ||
{ id: ALERT_RULE_DESCRIPTION, label: ALERTS_HEADERS_RULE_DESCRIPTION }, | ||
{ id: 'rule.description', label: ALERTS_HEADERS_RULE_DESCRIPTION }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When viewing the same alert in a branch based off beforeWhen running this PR branch, the afterIs it possible that I'm missing a change in my local environment that would populate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is something that I was also struggling with to understand. From what @paulewing explained to me I understood that |
||
// Resolve more fields based on the source event | ||
...getFieldsByCategory({ ...eventCategories, primaryEventCategory: undefined }), | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to also display
dns.question.type
in the flyout summary for parity with the DNS row renderer, shown in the screenshot below?CC @paulewing