| Hello, i'm working with sawmill and i want to set up the log filter, that in the log file the ip adresses and user names will be censored. I made this regex: if (matches_regular_expression(source_ip, "^(<0-9>{1,3}).(<0-9>{1,3}).(<0-9>{1,3}).(<0-9>{1,3})")) then source_ip = "XXX.XXX.XXX.XXX" and it works. But what i want to do now is, that only the last octett of the IP Adresse will be cenosred in the log e.g. 10.253.192.108 should be 10.253.192.XXX. Teh second Problem is the username. I want to censore the Username like this: a1222\ac42v4p to a1222\acXXXX i made the follwoing reg ex: if (matches_regular_expression(username, "^(<0-9>{4})\\({2})({5})")) then username = "Zens"But it doesn't work. Can someone help me please? Best Regards akadasch500 |