The oil filter is mainly used to clean the oil. Although the location of the oil filter elements will vary by different trucks, they are mainly located at the front top of the engine or under the engine hood behind the air filter housing. Most internal filters are installed into a sealed base at the top of the engine.