Read the differential pressure gauge
Most heavy machines have a Δp indicator on the hydraulic filter housing. When the differential between inlet and outlet rises past the spec value (commonly 1.5–2 bar), the filter element is restricted and the bypass valve is opening more often. That's the signal to replace.