The invention discloses a log file obtaining method and device and a storage medium, and belongs to the technical field of computers. The method comprises the steps that when detecting that an appointed application program is started, sending a configuration request to an application server, and using the configuration request for the application server to obtain configuration information and return the configuration information; when configuration information is received, screening out a target log file from locally cached log files according to the configuration information; and uploading the target log file to an application server. The configuration request is sent to the application server, the configuration information is obtained, the target log file is screened out according to theconfiguration information, and then the target log file is uploaded to the application server. Due to the fact that the cached log files are not completely uploaded to the application server, the screened target log files are uploaded, the file size of the uploaded log files is reduced, the storage space of the server is saved, and the positioning efficiency is improved.