I'm trying to build a rule that will check our VPN logs which contains the username and bytes out of all the users connections. I want to know the average of bytes out / day / username to be able to compare it against "$yesterday". The idea is that I will detect if johndoe had a "bytes out" of 50GB in a day while his average is only 20GB.
I understand that I need to use metrics.network_bytes_outbound, but I always get an error. Suggestions?
Run frequency: 24 hours
{"code":400,"statusText":"Bad Request","message":"cannot identify time window in the rule","details":[],...