A non-transitory computer-readable recording medium storing a failure assistance program that performs failure assistance when a failure occurs in a control processing system in which a first device controls a third device via a second device by using a communication message, the failure assistance program for causing a computer to execute processing comprising:
- classifying a communication pattern used to identify communication, by using first information in which each of a plurality of communication messages transmitted from the first device to the second device is recorded;
- generating relevance degree information that indicates a relevance degree between first communication performed between the first device and the second device and second communication performed between the second device and the third device, by using second information in which a communication log between the first device, the second device, and the third device is recorded, for each classified communication pattern;
- specifying a first communication pattern that corresponds to a communication message when a failure occurs, from among the plurality of classified communication patterns, when a failure occurs in the second device;
- and
- estimating the third device that is a communication destination to be controlled by the first device that is a communication source, with reference to the relevance degree information that corresponds to the specified first communication pattern.