The present application relates to the technical field of hard disk monitoring, and discloses a method for acquiring a hard disk log, a method for sending a hard disk log, an apparatus, a device, and a medium, the method for acquiring is applicable to a
baseboard management controller, and comprises: receiving a level
signal outputted by a hard disk read / write state indication pin of a hard disk device, the level
signal being obtained by modulating a hard disk read / write state and a hard disk log of the hard disk device; identifying pieces of
demodulation data respectively corresponding to target
square wave signals in the level
signal; and, on the basis of the
demodulation data, acquiring the hard disk log of the hard disk device. According to the present application, the hard disk read / write state indication pin of the hard disk device directly outputs the hard disk log to the
baseboard management controller, so as to achieve out-of-band monitoring on the hard disk device, thus solving the problem of difficulty in achieving out-of-band hard disk monitoring caused by a lack of permissions for an out-of-band
management system to access hard disk data in a traditional out-of-band hard disk monitoring solution. Hence, the range of hard disk devices on which the
baseboard management controller can perform out-of-band monitoring is widened, and the difficulty in out-of-band monitoring on the hard disk device is reduced.