The present invention discloses a device fault diagnosis method, an electronic device, a storage medium, and a program product, relating to the technical field of device fault diagnosis, including achieving dynamic
template matching through the device attribute information of the device to be diagnosed, realizing log collection of the device to be diagnosed through the found log collection template, and realizing automatic
parsing of the collected target logs through the log
parsing template, without restricting the parsable log types, which greatly improves the
scalability. Fault diagnosis is performed on the device to be diagnosed by dynamically matching the corresponding diagnostic rules through the diagnostic rule template. Compared with fault diagnosis only through the threshold matching method and
device status, it can flexibly adapt to different devices, improve the fault diagnosis ability, and achieve unified management and efficient fault diagnosis of heterogeneous devices. It solves the technical problems of poor
scalability, low operation and maintenance efficiency, and limited fault diagnosis ability, and achieves the technical effects of good
scalability, improved operation and maintenance efficiency, and improved fault diagnosis ability.