Predict failure time by analysing history fault logs of same machines in databases