-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datajson: support for nested value key
With this patch, it is now possible to define the value to be used in the datajson set as a value in a chain of subobjects. For example, with the following JSON: { "info": { "threat": [ { "context": "gold old test", "year": 2005, "host": { "fqdn": "www.testmyids.com", "domain": "testmyids.com" } } ] } } it is possible to match on host.fqdn by doing: http.host; datajson:isset,nkbadhost,type string,load hosts-nested-key.json,key host,json_key host.fqdn, array_key info.threat `array_key info.threat` to access the inner array and then `json_key host.fqdn` to access the field inside.
- Loading branch information
Showing
1 changed file
with
62 additions
and
17 deletions.
There are no files selected for viewing
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