The 29-year-old, whose contract with previous club Lokomotiv Moscow was terminated last year after a fall-out with coach Leonid Kuchuk, is now a free agent, and despite interest from Newcastle, QPR and Celtic, it looks as though the former French international is set for a move to Upton Park.
Hammers boss Sam Allardyce, talking ahead of his side’s next fixture against Southampton tomorrow, confirmed Diarra had been training with the side, with the view to sign him on a short-term deal.
“He is training with us,” Allardyce said. “I’m not so sure whether we’ve finalised a deal yet but he has been doing a little bit of training with us.
"I think the deal is very close to being finalised and I think on the basis of where we are at the minute with our squad and the injuries, as soon as we get him fit he’ll be a really good addition based on his previous record as a footballer.”
Diarra, whose previous clubs also include Arsenal, Portsmouth and Anzhi Makhachkala, enjoyed great success in a three-year spell at Real Madrid between 2009 and 2012, making 116 appearances as he helped his side to the 2010/11 League title and the 2010/11 Spanish Cup.