The invention discloses a
fault analysis and positioning method and
system based on
log data, and relates to the technical field of
log data analysis and fault positioning, and the method comprises the steps: collecting first
log data, and carrying out the preprocessing; identifying a log mode through a first identification method, and establishing a
basic mode multi-dimensional vector of the abnormal log; and through a first log analysis tool, comparing the real-time log data with a historical baseline, identifying abnormity and carrying out fault positioning. According to the method, the log
modes with similar characteristics are recognized and the multi-dimensional vector representation is established through the application of the first recognition method, so that the abnormal log
modes can be accurately recognized, the accuracy of
anomaly detection is improved, the
false alarm rate is reduced through the comparison of
angular distance calculation and the preset threshold value, and the accuracy of
anomaly detection is improved. By using the first log analysis tool, the real-time log data can be compared with the historical
base line, so that the abnormity is identified and the fault is positioned.