Filtering loging of only valid locations