hi everyone,
i'm trying to parse json inline. i'm using kv mode= json already but i'm trying to achieve selective groups.
essentially i want to capture two groups if they have an "exclusion type...
See more...
hi everyone,
i'm trying to parse json inline. i'm using kv mode= json already but i'm trying to achieve selective groups.
essentially i want to capture two groups if they have an "exclusion type"
sample json.
[{"ruleGroupId":"AWS#AWSManagedRulesAmazonIpReputationList","terminatingRule":null,"nonTerminatingMatchingRules":[],"excludedRules":null},{"ruleGroupId":"AWS#AWSManagedRulesBotControlRuleSet","terminatingRule":null,"nonTerminatingMatchingRules":[],"excludedRules":null},{"ruleGroupId":"AWS#AWSManagedRulesCommonRuleSet","terminatingRule":null,"nonTerminatingMatchingRules":[],"excludedRules":[{"exclusionType":"EXCLUDED_AS_COUNT","ruleId":"SizeRestrictions_BODY"}]},{"ruleGroupId":"AWS#AWSManagedRulesKnownBadInputsRuleSet","terminatingRule":null,"nonTerminatingMatchingRules":[],"excludedRules":null}]
so for this i wanted to capture only the ruleGroupId name if it has excludedRules not null, then capture the exclusionType
any help would be appreciated.