extract from LogCollector Filter building code tep 2