Purging events older than x
Posted: Sun Apr 08, 2012 10:40 pm
I would like to filter events older then x days so I can create an automatic purge filter instead of relaying on disk usage.
So far i can tell, only values "now" and "%Y-%m-%d %H:%M" are allowed as DateTime value.
In order to filter events older than x minutes/hours/days.. one would have to use something like a dynamic "now-x" as DateTime filter input.
I wasn't able to find where the "now" value is interpreted as the current time, if anyone knows, devs?
The idea would be to translate the "now-x" value to the current time reduced by the x amount of minutes, days or whatever.
If somebody could point me to the right files/locations I could do it myself.
Thanks in advance.
Regards
So far i can tell, only values "now" and "%Y-%m-%d %H:%M" are allowed as DateTime value.
In order to filter events older than x minutes/hours/days.. one would have to use something like a dynamic "now-x" as DateTime filter input.
I wasn't able to find where the "now" value is interpreted as the current time, if anyone knows, devs?
The idea would be to translate the "now-x" value to the current time reduced by the x amount of minutes, days or whatever.
If somebody could point me to the right files/locations I could do it myself.
Thanks in advance.
Regards