-
Hello, I created a new AccessRatioRule.py module in the previous version of elasticalert to calculate the ratio .
Now I wish I could handle the equivalent of sql "group_by" clientip, to calculate the ratio for each ip that has field1 = 0 and field2 = 200 and field3 = GET. How can the ratio be calculated for each individual client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello , The AccessRateRule.py file is : |
Beta Was this translation helpful? Give feedback.
Hello ,
I found the solution.
My example_ratio.yml file is :
example_ratio.txt
The AccessRateRule.py file is :
AccessRateRule.txt