extracted the findRule method to be able to get a matched label log