Apparatus used in rain collecting pipes before the tank causing a separation or retention of solids. A differentiation is made between downpipe filters, underground filters and filters / devices integrated in the tank which separate undissolved impurities from the harvested rainwater between the collecting area and the storage inlet via one or more mechanically-acting separators.