filter out empty logs