Local rheology of lubricants in the elastohydrodynamic regime