Dataset with JSON allows matching data against a set and output data attached to the matching
Dataset with JSON allows matching data against a set and output data attached to the matching
@ -191,7 +191,7 @@ Example rules could look like::
alert http any any -> any any (msg:"IP match"; ip.dst; dataset:isset,bad_ips, type ip, load bad_ips.json, format json, enrichment_key bad_ones, value_key ip; sid:8000001;)
alert http any any -> any any (msg:"IP match"; ip.dst; dataset:isset,bad_ips, type ip, load bad_ips.json, format json, enrichment_key bad_ones, value_key ip; sid:8000001;)
In this example, the match will occur if the destination IP is in the set and the
In this example, the match will occur if the destination IP is in the set and the
alert will have an ``alert.extra.bad_ones`` subobject that will contain the JSON
alert will have an ``alert.content.bad_ones`` subobject that will contain the JSON
data associated to the value (``bad_ones`` coming from ``enrichment_key`` option).
data associated to the value (``bad_ones`` coming from ``enrichment_key`` option).
When format is ``json`` or ``jsonline``, the ``value_key`` is used to get
When format is ``json`` or ``jsonline``, the ``value_key`` is used to get
@ -402,6 +402,19 @@ then the match to check the list of threats using dataset with JSON can be defin