mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #947 from Security-Onion-Solutions/fix/strelka_exiftool
Add fields for exiftool keys
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"description" : "strelka",
|
|
||||||
"processors" : [
|
|
||||||
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
|
|
||||||
{ "rename": { "field": "message2.file", "target_field": "file", "ignore_missing": true } },
|
|
||||||
{ "rename": { "field": "message2.scan", "target_field": "scan", "ignore_missing": true } },
|
|
||||||
{ "rename": { "field": "message2.request", "target_field": "request", "ignore_missing": true } },
|
|
||||||
{ "rename": { "field": "scan.hash", "target_field": "file.hash", "ignore_missing": true } },
|
|
||||||
{ "remove": { "field": ["host", "path", "agent"], "ignore_missing": true } },
|
|
||||||
{ "pipeline": { "name": "common" } }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -7,6 +7,18 @@
|
|||||||
{ "rename": { "field": "message2.request", "target_field": "request", "ignore_missing": true } },
|
{ "rename": { "field": "message2.request", "target_field": "request", "ignore_missing": true } },
|
||||||
{ "rename": { "field": "scan.hash", "target_field": "hash", "ignore_missing": true } },
|
{ "rename": { "field": "scan.hash", "target_field": "hash", "ignore_missing": true } },
|
||||||
{ "grok": { "field": "request.attributes.filename", "patterns": ["-%{WORD:log.id.fuid}-"] } },
|
{ "grok": { "field": "request.attributes.filename", "patterns": ["-%{WORD:log.id.fuid}-"] } },
|
||||||
|
{ "foreach":
|
||||||
|
{
|
||||||
|
"if": "ctx.scan?.exiftool?.keys !=null",
|
||||||
|
"field": "scan.exiftool.keys",
|
||||||
|
"processor":{
|
||||||
|
"set": {
|
||||||
|
"field": "scan.exiftool.{{_ingest._value.key}}",
|
||||||
|
"value": "{{_ingest._value.value}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{ "remove": { "field": ["host", "path"], "ignore_missing": true } },
|
{ "remove": { "field": ["host", "path"], "ignore_missing": true } },
|
||||||
{ "pipeline": { "name": "common" } }
|
{ "pipeline": { "name": "common" } }
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user