Closed shashank-elastic closed 1 month ago
These guidelines serve as a reminder set of considerations when addressing adding a new schema feature to the code.
make test-cli
)make test-remote-cli
)@shashank-elastic
'ml_is_dga.malicious_prediction' in package_schemas['dga']
True
I recall the structure being package_schemas -> package -> version -> key:field_type. Did we verify that the field exists int he latest package?
@shashank-elastic
'ml_is_dga.malicious_prediction' in package_schemas['dga'] True
I recall the structure being package_schemas -> package -> version -> key:field_type. Did we verify that the field exists int he latest package?
yes I got this from the debugging flattened structure.
Here is the field from latest version
{
"dga-2.0.4": {
"data_stream.type": "constant_keyword",
"data_stream.dataset": "constant_keyword",
"data_stream.namespace": "constant_keyword",
"@timestamp": "date",
"ml_is_dga.malicious_prediction": "long",
"ml_is_dga.malicious_probability": "float"
},
"jobs": [
"dga_high_sum_probability"
]
}
Overall Schema for DGA
{
"1.0.0": {
"jobs": [
"dga_high_sum_probability"
]
},
"1.0.1": {
"jobs": [
"dga_high_sum_probability"
]
},
"1.1.0": {
"jobs": [
"dga_high_sum_probability"
]
},
"2.0.0": {
"dga-2.0.0": {
"data_stream.type": "constant_keyword",
"data_stream.dataset": "constant_keyword",
"data_stream.namespace": "constant_keyword",
"@timestamp": "date",
"ml_is_dga.malicious_prediction": "long",
"ml_is_dga.malicious_probability": "float"
},
"jobs": [
"dga_high_sum_probability"
]
},
"2.0.1": {
"dga-2.0.1": {
"data_stream.type": "constant_keyword",
"data_stream.dataset": "constant_keyword",
"data_stream.namespace": "constant_keyword",
"@timestamp": "date",
"ml_is_dga.malicious_prediction": "long",
"ml_is_dga.malicious_probability": "float"
},
"jobs": [
"dga_high_sum_probability"
]
},
"2.0.2": {
"dga-2.0.2": {
"data_stream.type": "constant_keyword",
"data_stream.dataset": "constant_keyword",
"data_stream.namespace": "constant_keyword",
"@timestamp": "date",
"ml_is_dga.malicious_prediction": "long",
"ml_is_dga.malicious_probability": "float"
},
"jobs": [
"dga_high_sum_probability"
]
},
"2.0.3": {
"jobs": [
"dga_high_sum_probability"
]
},
"2.0.4": {
"dga-2.0.4": {
"data_stream.type": "constant_keyword",
"data_stream.dataset": "constant_keyword",
"data_stream.namespace": "constant_keyword",
"@timestamp": "date",
"ml_is_dga.malicious_prediction": "long",
"ml_is_dga.malicious_probability": "float"
},
"jobs": [
"dga_high_sum_probability"
]
}
}
Pull Request
Issue link(s): https://github.com/elastic/detection-rules/issues/3994
Summary - What I changed
How To Test
Checklist
bug
,enhancement
,schema
,Rule: New
,Rule: Deprecation
,Rule: Tuning
,Hunt: New
, orHunt: Tuning
so guidelines can be generatedmeta:rapid-merge
label if planning to merge within 24 hoursContributor checklist