Hi everyone,
I am working on SecOps Native Dashboards and encountered an issue while using the sum function in YARA-L while creating visualizations.
Below is my query:
metadata.vendor_name="ABC"
principal.ip!=""
target.ip!=""
$query=query
match:
$query
outcome:
$total_bytes=sum(bytes)
The result values are 4 times the expected values. For example, if the required result is 30, the query returns 120 (4 × 30).
I also observed that, When I remove the principal.ip and target.ip filters from the query, I get the correct result.
metadata.vendor_name="ABC"
$query=query
match:
$query
outcome:
$total_bytes=sum(bytes)
Why is this happening? Is there any alternative or solution to fix this?
Thanks,
Prashant Nakum