Last active
June 6, 2017 10:03
-
-
Save gingerwizard/b1690510ac92b1b2ef2cc105417abacc to your computer and use it in GitHub Desktop.
Update By Query Request to add process_signature field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST cef-*/_update_by_query | |
{ | |
"query": { | |
"term": { | |
"auditd.log.record_type": { | |
"value": "EXECVE" | |
} | |
} | |
}, | |
"script": { | |
"lang": "painless", | |
"inline": "if (ctx._source.auditd?.log?.a0 != null) { ctx._source.process_signature = ctx._source.auditd.log.a0+'|'+ctx._source.auditd.log.a1+'|'+ctx._source.beat.name; }" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment