Automatic filters for fuel and lubricating oil