Earthquake is one of the most destructive natural phenomena which has human and financial losses. The existence of an efficient prediction system and early warning system will be useful for reducing effects of destroying earthquake. In this paper by applying three filters (Fourier, Wavelet and Difference Logarithmic Filter (LDF)) on soil temperature time-series, anomaly behavior before the major earthquakes was studied. Aforementioned methods were performed of the Bam (2003), and Zarand (2005) earthquakes in Iran. The results indicate thermal anomalies were detected before earthquake occurrence. Furthermore, the LDF filter detects thermal anomaly as well as the Fourier and Wavelet filters. For validation of the results, the soil temperature data of the Bam earthquake were considered from the Bam meteorological station and also from the Joroft meteorological stations that located in effective radius (Dobrolsky radius) and the same results was obtained. It states that there is a relation between temperature anomaly behavior and the major earthquakes.