The invention relates to an instant log output method and device based on an RSA key pair under a Windows platform. The method comprises the following steps that S01, a Main App main application program is started; S02, the Main App acquires a public key file through a network or locally, loads a public key, and establishes a one-way data sending pipeline; S03, the Main App transmits the log data;S04, an application program of the Logger App recorder is started; S05, the Logger App obtains a private key file through a network or locally, loads a private key, and opens a one-way receiving datachannel; and S06, the Loger App receives the log data. The log data are encrypted and decrypted by utilizing the RSA key pair; the log data are transmitted to different places for storage and monitoring in real time through the one-way data transmission channel, the problems that in the prior art, log data transmission is low in safety, data cannot be monitored in real time, and timeliness is loware solved, log data safety is guaranteed, and the timeliness of the log data is improved.