extract from LogCollector Filter building code step 3