CN116405378A - Log uploading method, device, equipment and medium - Google Patents

Log uploading method, device, equipment and medium Download PDF

Info

Publication number
CN116405378A
CN116405378A CN202310390155.XA CN202310390155A CN116405378A CN 116405378 A CN116405378 A CN 116405378A CN 202310390155 A CN202310390155 A CN 202310390155A CN 116405378 A CN116405378 A CN 116405378A
Authority
CN
China
Prior art keywords
log
instruction
uploading
target application
website server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310390155.XA
Other languages
Chinese (zh)
Inventor
胡超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Weimeng Enterprise Development Co ltd
Original Assignee
Shanghai Weimeng Enterprise Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Weimeng Enterprise Development Co ltd filed Critical Shanghai Weimeng Enterprise Development Co ltd
Priority to CN202310390155.XA priority Critical patent/CN116405378A/en
Publication of CN116405378A publication Critical patent/CN116405378A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a log uploading method, device, equipment and medium, and relates to the field of computer software operation and maintenance. When a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.

Description

Log uploading method, device, equipment and medium
Technical Field
The present invention relates to the field of computer software operation and maintenance, and in particular, to a method, an apparatus, a device, and a medium for uploading logs.
Background
Network equipment, systems, application service programs and the like can generate an event record called log (log) during operation; each row of logs records the description of the related operations such as date, time, user, action and the like; by acquiring the log, the operations such as auditing and troubleshooting of network equipment or processes can be realized. Currently, most of the Applications (APP) on the market need to click the upload button on a specific page in the Application, but this approach has some drawbacks.
Firstly, when a user is not on a designated page, uploading logs are limited and cannot be uploaded timely, so that problems are not processed timely, negative emotion of the user is increased, complaint rate is increased, and meanwhile potential risks of system safety can exist. In addition, even if the user designates the page, the user may generate contradiction to the execution of the uploading log due to the reasons of complicated operation, poor experience and the like, thereby affecting the efficiency and quality of the uploading of the log.
In view of the above, how to better implement log uploading is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a log uploading method, device, equipment and medium, so as to better realize log uploading.
In order to solve the technical problems, the application provides a log uploading method which is applied to an intelligent terminal provided with a target application program; the method comprises the following steps:
when the target application program is started, starting the collection of the log of the target application program;
monitoring an instruction transmitted by a website server;
when the instruction is received, judging whether the instruction is a log uploading instruction or not;
if yes, uploading the log to the website server according to the log uploading instruction.
Preferably, before the starting of the collection of the log of the target application program, the method further comprises:
sending the identity and account information to the website server;
registering a message push with the website server for receiving the instruction sent by the website server;
creating a storage file to store the log through the storage file.
Preferably, the collecting process of the log includes:
the embedded point records the operation behavior of a user on the target application program so as to generate the log;
encrypting the log, and storing the encrypted log in the storage file.
Preferably, the determining whether the instruction is a log upload instruction includes:
analyzing the instruction, and acquiring a target instruction transaction agreed with the website server according to the instruction;
judging whether the target instruction transaction is the same as the instruction transaction corresponding to the log uploading instruction;
if yes, confirming that the instruction is the log uploading instruction;
if not, confirming that the instruction is not the log uploading instruction;
and the command transaction corresponding to the log uploading command is to execute the uploading of the log of the website server.
Preferably, the uploading the log to the website server according to the log uploading instruction includes:
compressing the log in the storage file, and uploading the compressed log to a media center server;
receiving a resource path link returned by the media center server; wherein the resource path link is a link for downloading the log in the media center server;
and sending the resource path link to the website server for the website server to acquire the log through the resource path link.
Preferably, after the uploading the log to the website server according to the log uploading instruction, the method further includes:
and decompressing and decrypting the log through the website server so as to be used for analyzing the decrypted log by a user.
In order to solve the technical problems, the application also provides another log uploading method which is applied to the website server; the method comprises the following steps:
transmitting a log uploading instruction to the intelligent terminal;
receiving a log uploaded by the intelligent terminal after determining the log uploading instruction;
the log is collected by the intelligent terminal after the target application program is started.
In order to solve the technical problems, the application also provides a log uploading device which is applied to the intelligent terminal provided with the target application program; the device comprises:
the starting module is used for starting the acquisition of the log of the target application program when the target application program is started;
the monitoring module is used for monitoring the instruction transmitted by the website server;
the judging module is used for judging whether the instruction is a log uploading instruction or not when the instruction is received; if yes, triggering an uploading module;
and the uploading module is used for uploading the log to the website server according to the log uploading instruction.
In order to solve the technical problems, the application also provides another log uploading device which is applied to the website server; the device comprises:
the sending module is used for sending a log uploading instruction to the intelligent terminal;
the receiving module is used for receiving the log uploaded by the intelligent terminal after determining the log uploading instruction;
the log is collected by the intelligent terminal after the target application program is started.
In order to solve the above technical problem, the present application further provides a log uploading device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the log uploading method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the log uploading method described above.
The log uploading method provided by the application is applied to the intelligent terminal provided with the target application program; when a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
In addition, the application also provides a log uploading device, equipment and medium, and the effects are the same as the above.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a log uploading method provided in an embodiment of the present application;
FIG. 2 is a flowchart of another log uploading method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a log uploading device provided in an embodiment of the present application;
fig. 4 is a schematic diagram of another log uploading device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a log uploading device provided in an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a log uploading method, device, equipment and medium so as to better realize log uploading.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Currently, user cooperation is required for log uploading for application programs in intelligent terminals. On the one hand, when the user is not on the appointed page, the uploading log is limited and cannot be uploaded in time, so that the problem is not processed in time, negative emotion of the user is increased, the complaint rate is increased, and meanwhile, the potential risk of system safety possibly exists. On the other hand, even if the user designates the page, the user may generate contradiction emotion to the execution of the uploading log due to the reasons of complicated operation, poor experience and the like, so as to influence the efficiency and quality of the uploading of the log. Therefore, the embodiment of the application provides a log uploading method so as to better realize log uploading.
It should be noted that the log uploading method provided in this embodiment is applied to an intelligent terminal provided with a target application program. The target application program is application software which can be run on mobile intelligent terminals such as mobile phones, tablet computers and the like; correspondingly, the intelligent terminal can be a mobile intelligent terminal such as a mobile phone or a tablet computer. In this embodiment, the type of the target application program and the type of the intelligent terminal are not limited, and depend on the specific implementation.
Fig. 1 is a flowchart of a log uploading method provided in an embodiment of the present application. As shown in fig. 1, the method includes:
s10: when the target application is started, collection of a log of the target application is started.
First, when a target application is started in the intelligent terminal, acquisition of a log of the target application needs to be started. Transactions made during the running of the target application are recorded during log collection, including but not limited to the opening of a page, the end of a session, the success or failure of an event, etc.
It should be noted that, in order to better implement the collection of the target application log and the subsequent uploading of the log to the website server, the preparation work of the pre-transaction of the target application based on the intelligent terminal is also required before the log is collected. Specifically, as a preferred embodiment, before the collection of the log of the target application program is started, the method further includes:
s100: and sending the identity and account information to a website server.
S101: the message push with the website server is registered for receiving the instruction sent by the website server.
S102: a storage file is created to store a log by the storage file.
Specifically, when the target application program is started, the identity of the current intelligent terminal and the account information of the current login of the target application program are sent to a website server, and the website server performs storage management after receiving the information. It can be understood that the identity and account information are used as unique identity of the intelligent terminal in the internet, so that the intelligent terminal running the target application program can be found in the network when the instruction is issued. It should be noted that, the Web server refers to a program residing on a certain type of computer on the internet, and can process a request of a client such as a browser and return a corresponding response, and can also place a Web file and a data file for browsing and downloading. In this embodiment, the website server is the destination of the log uploading of the target application program, and has the functions of identifier management, instruction triggering, resource management, log analysis and the like.
Further, message pushing with the website server is registered, and an association between the target application program and the message pushing platform is established, so that the website server can send specified information to the target application program through an external application programming interface (Application Programming Interface, API) of the message pushing platform, and the target application program can receive instructions sent by the website server. In this embodiment, the specific registered message pushing is not limited, and may be a single pushing, or an aurora pushing, which depends on the specific implementation situation.
In order to be able to store the collected logs, it is also necessary to create a storage file in the pre-transaction executed by the target application. The storage file is an empty file that functions to record and store the collected log. Thus, all the pre-transactions before the target application program log acquisition are executed and completed.
When the target application is started, collection of a log of the target application is started. As a preferred embodiment, the log collection process includes:
s103: the embedded point records the operation behavior of the user on the target application program to generate a log.
S104: encrypting the log, and storing the encrypted log in a storage file.
In the log acquisition of the target application program, the buried point records the operation behavior of the user on the target application program so as to generate a log. For example, the target application program is live broadcast software, when a user clicks a button of a live broadcast ending room of the live broadcast software, a live broadcast software popup box prompts the user whether to really end live broadcast, and the buried point records the next operation behavior of the user, whether to click 'end live broadcast' or 'continue live broadcast', so that logs are correspondingly generated.
Further, in order to ensure the security of the log, the log needs to be encrypted before being stored. The specific manner of log encryption in this embodiment is not limited, and may be encrypted by advanced encryption standard (Advanced Encryption Standard, AES), digital signature algorithm (Digital Signature Algorithm, DSA), or other encryption algorithm, depending on the specific implementation. And finally, storing the encrypted log in a storage file.
S11: and monitoring the instructions transmitted by the website server.
S12: when the instruction is received, whether the instruction is a log uploading instruction is judged. If yes, go to step S13; if not, go to step S14: and executing the instruction transaction corresponding to the instruction.
In the log acquisition process of the target application program, the intelligent terminal monitors the command transmitted by the website server in real time. Specifically, the target application program pushes the remote information sent by the monitoring website server through the registered message; when the target application program receives the instruction issued by the website server, the instruction is analyzed, so that whether the instruction is an instruction for uploading the log is judged. When the instruction is determined to be a log uploading instruction, the step S13 is entered; when the confirmation instruction is not the log uploading instruction, the step S14 is proceeded to execute the instruction transaction corresponding to the instruction.
As a preferred embodiment, determining whether the instruction is a log upload instruction includes:
s120: analyzing the instruction, and acquiring a target instruction transaction appointed by the website server according to the instruction;
s121: judging whether the target instruction transaction is the same as the instruction transaction corresponding to the log uploading instruction; if yes, go to step S122; if not, the process advances to step S123.
S122: the confirm instruction is a log upload instruction.
S123: the confirmation instruction is not a log upload instruction.
And the command transaction corresponding to the log uploading command is to upload the log of the website server.
In a specific implementation, the target application program analyzes the received instruction, thereby acquiring a target instruction transaction agreed with the website server in the instruction. It should be noted that the target application program will execute the target instruction transaction corresponding to the instruction agreed with the website server, and the transaction not within the agreed instruction range will be ignored, and no execution will be performed. Therefore, in order to realize log uploading, the target application program needs to determine whether the target instruction transaction corresponding to the instruction sent by the website server is the same as the instruction transaction corresponding to the log uploading instruction. If yes, confirming that the instruction is a log uploading instruction, and uploading an execution log; if not, confirming that the instruction is not a log uploading instruction and not uploading the log.
For example, when a user requests a target application program in a certain intelligent terminal to upload a log, the user logs in a management background provided by a website server, and finds the intelligent terminal by using an identity mark and account information of the target application program uploaded in advance by the intelligent terminal; and further sending a trigger instruction '1234' to the intelligent terminal, wherein the trigger instruction is appointed in advance to represent an execution log uploading function. Thus, log upload begins immediately upon receipt of instruction "1234" by the target application of the intelligent terminal.
S13: and uploading the log to a website server according to the log uploading instruction.
Further, when the target application program receives the instruction, the confirmation instruction is a log uploading instruction, and the log is directly uploaded to the website server according to the log uploading instruction.
In a specific implementation, in order to better implement log uploading and resource management between the target application program and the website server, as a preferred embodiment, uploading the log to the website server according to the log uploading instruction includes:
s130: compressing the log in the storage file, and uploading the compressed log to a media center server.
S131: and receiving the resource path link returned by the media center server.
Wherein the resource path link is a link for downloading a log in the media center server.
S132: the resource path links are sent to the web server for the web server to obtain logs through the resource path links.
Specifically, the log in the storage file is compressed when the log is uploaded, and the compressed log is uploaded to the media center server. In this embodiment, the compression format of the log is not limited, and may be 7z, zip, rar, etc., according to the specific implementation. The media center server is a remote service for file storage management, supports storage, access and downloading of files, and realizes a butt-joint object storage (Object Storage Service, OSS) cloud server at the bottom layer. The cloud server (Elastic Compute Service, ECS) is a simple, efficient, safe and reliable computing service with flexible processing capabilities. The management mode is simpler and more efficient than that of a physical server. A user can quickly create or release any plurality of cloud servers without purchasing hardware in advance. The cloud server can help the user to quickly construct more stable and safe application, reduce the difficulty of developing operation and maintenance and the technical cost of the whole Internet, and enable the user to concentrate on innovation of core business. In this embodiment, the media center server can perform unified management on logs uploaded by a plurality of intelligent terminals; meanwhile, the method can perform wind control management on the files uploaded to the website server, and avoid network attack or sensitive file uploading.
Further, after uploading the compressed log to the media center server, the media center server returns a resource path link to the target application. It will be appreciated that the resource path link is a link for downloading a log in a media center server. Therefore, in order to achieve the uploading of the log, the target application program also needs to send a resource path link to the website server, so that the website server can acquire the log through the resource path link.
Specifically, as a preferred embodiment, after uploading the log to the website server according to the log uploading instruction, the method further includes:
s15: and decompressing and decrypting the log through the website server for analyzing the decrypted log by the user.
In an implementation, a web server obtains a resource path link and downloads a log compression package according to the resource path link. In order to be able to view the log content, the log is further decompressed and decrypted, so that a log capable of viewing specific content is obtained, and the log content is analyzed. It can be understood that the decompression mode and the decryption mode of the log correspond to the compression mode and the encryption mode of the log respectively, so that the log content can be accurately and completely obtained for further analysis.
In the embodiment, the log uploading method is applied to the intelligent terminal provided with the target application program; when a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
Fig. 2 is a flowchart of another log uploading method provided in an embodiment of the present application. The method is applied to a website server; as shown in fig. 2, the method includes:
s16: and sending a log uploading instruction to the intelligent terminal.
S17: and receiving the log uploaded by the intelligent terminal after determining the log uploading instruction.
The log is a log of the target application program acquired by the intelligent terminal after the target application program is started.
In a specific implementation, the website server sends a log uploading instruction to the intelligent terminal so as to inform the intelligent terminal to upload the log of the target application program. The intelligent terminal starts the collection of the log of the target application program when the target application program is started. After receiving the log uploading instruction, the target application program determines the appointed instruction transaction of the instruction; and after determining that the contracted instruction transaction of the instruction is to upload the log of the target application program to the website server, transmitting the log of the target application program to the website server. And the website server receives the log uploaded by the intelligent terminal after determining the log uploading instruction.
In the embodiment, the log uploading method is applied to a website server; and sending a log uploading instruction to the intelligent terminal. And receiving the log uploaded by the intelligent terminal after determining the log uploading instruction. The log is a log of the target application program acquired by the intelligent terminal after the target application program is started. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
In the above embodiments, the detailed description is given to the log uploading method, and the present application further provides a corresponding embodiment of the log uploading device.
Fig. 3 is a schematic diagram of a log uploading device provided in an embodiment of the present application. The device is applied to the intelligent terminal provided with the target application program; as shown in fig. 3, the log uploading device includes:
the starting module 10 is configured to start collection of a log of the target application program when the target application program is started.
The monitoring module 11 is configured to monitor an instruction transmitted by the website server.
A judging module 12, configured to, when receiving the instruction, judge whether the instruction is a log uploading instruction; if so, the upload module 13 is triggered.
And the uploading module 13 is used for uploading the log to the website server according to the log uploading instruction.
In this embodiment, the log uploading device is applied to an intelligent terminal provided with a target application program, and includes a starting module, a monitoring module, a judging module and an uploading module. The log uploading device can realize all the steps of the log uploading method when running. When a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
Fig. 4 is a schematic diagram of another log uploading device according to an embodiment of the present application. The device is applied to a website server; as shown in fig. 4, the log uploading device includes:
and the sending module 14 is used for sending the log uploading instruction to the intelligent terminal.
And the receiving module 15 is used for receiving the log uploaded by the intelligent terminal after determining the log uploading instruction.
The log is a log of the target application program acquired by the intelligent terminal after the target application program is started.
In this embodiment, the log uploading device is applied to a website server and includes a sending module and a receiving module. The log uploading device can realize all the steps of the log uploading method when running. And sending a log uploading instruction to the intelligent terminal. And receiving the log uploaded by the intelligent terminal after determining the log uploading instruction. The log is a log of the target application program acquired by the intelligent terminal after the target application program is started. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
Fig. 5 is a schematic diagram of a log uploading device provided in an embodiment of the present application. As shown in fig. 5, the log uploading apparatus includes:
a memory 20 for storing a computer program.
A processor 21 for carrying out the steps of the method of log uploading as mentioned in the above embodiments when executing a computer program.
The log uploading device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU) for use in connection with rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the log uploading method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data related to a log upload method.
In some embodiments, the log uploading device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the structure shown in fig. 5 is not limiting of the log uploading device and may include more or fewer components than shown.
In this embodiment, the log uploading device includes a memory and a processor. The memory is used for storing a computer program. The processor is arranged to implement the steps of the method of log uploading as mentioned in the above embodiments when executing the computer program. When a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps described in the above method embodiments (may be a method corresponding to the intelligent terminal side, a method corresponding to the web server side, or a method corresponding to the intelligent terminal side and the web server side).
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this embodiment, a computer program is stored on a computer readable storage medium, and when the computer program is executed by a processor, the steps described in the above method embodiments (may be a method corresponding to an intelligent terminal side, a method corresponding to a web server side, or a method corresponding to an intelligent terminal side and a web server side) are implemented. When a target application program is started, starting the acquisition of the log of the target application program; monitoring an instruction transmitted by a website server; when receiving the instruction, judging whether the instruction is a log uploading instruction; if yes, uploading the log to a website server according to the log uploading instruction. Therefore, the scheme is not limited by the page where the user is located in the target application program, and the acquisition of the log is started immediately after the target application program is started; when the log uploading is needed, the log uploading instruction is sent to the intelligent terminal through the website server, the intelligent terminal can upload the collected log according to the instruction, user cooperation is not needed, the problems of reduced user experience, increased complaint rate and the like are avoided, the log uploading flow is optimized, and the operation and maintenance efficiency is improved.
The method, the device, the equipment and the medium for uploading the log are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (11)

1. The log uploading method is characterized by being applied to an intelligent terminal provided with a target application program; the method comprises the following steps:
when the target application program is started, starting the collection of the log of the target application program;
monitoring an instruction transmitted by a website server;
when the instruction is received, judging whether the instruction is a log uploading instruction or not;
if yes, uploading the log to the website server according to the log uploading instruction.
2. The log uploading method according to claim 1, further comprising, prior to the initiating the collection of the log of the target application:
sending the identity and account information to the website server;
registering a message push with the website server for receiving the instruction sent by the website server;
creating a storage file to store the log through the storage file.
3. The log uploading method according to claim 2, wherein the log acquisition process comprises:
the embedded point records the operation behavior of a user on the target application program so as to generate the log;
encrypting the log, and storing the encrypted log in the storage file.
4. The log uploading method according to claim 1, wherein the determining whether the instruction is a log uploading instruction comprises:
analyzing the instruction, and acquiring a target instruction transaction agreed with the website server according to the instruction;
judging whether the target instruction transaction is the same as the instruction transaction corresponding to the log uploading instruction;
if yes, confirming that the instruction is the log uploading instruction;
if not, confirming that the instruction is not the log uploading instruction;
and the command transaction corresponding to the log uploading command is to execute the uploading of the log of the website server.
5. The log uploading method according to claim 3, wherein uploading the log into the website server according to the log uploading instruction comprises:
compressing the log in the storage file, and uploading the compressed log to a media center server;
receiving a resource path link returned by the media center server; wherein the resource path link is a link for downloading the log in the media center server;
and sending the resource path link to the website server for the website server to acquire the log through the resource path link.
6. The log uploading method according to claim 5, further comprising, after the uploading the log to the web server according to the log uploading instruction:
and decompressing and decrypting the log through the website server so as to be used for analyzing the decrypted log by a user.
7. The log uploading method is characterized by being applied to a website server; the method comprises the following steps:
transmitting a log uploading instruction to the intelligent terminal;
receiving a log uploaded by the intelligent terminal after determining the log uploading instruction;
the log is collected by the intelligent terminal after the target application program is started.
8. The log uploading device is characterized by being applied to an intelligent terminal provided with a target application program; the device comprises:
the starting module is used for starting the acquisition of the log of the target application program when the target application program is started;
the monitoring module is used for monitoring the instruction transmitted by the website server;
the judging module is used for judging whether the instruction is a log uploading instruction or not when the instruction is received; if yes, triggering an uploading module;
and the uploading module is used for uploading the log to the website server according to the log uploading instruction.
9. The log uploading device is characterized by being applied to a website server; the device comprises:
the sending module is used for sending a log uploading instruction to the intelligent terminal;
the receiving module is used for receiving the log uploaded by the intelligent terminal after determining the log uploading instruction;
the log is collected by the intelligent terminal after the target application program is started.
10. A log uploading device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the log uploading method according to any of claims 1 to 7 when executing the computer program.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the log uploading method according to any of claims 1 to 7.
CN202310390155.XA 2023-04-11 2023-04-11 Log uploading method, device, equipment and medium Pending CN116405378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310390155.XA CN116405378A (en) 2023-04-11 2023-04-11 Log uploading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310390155.XA CN116405378A (en) 2023-04-11 2023-04-11 Log uploading method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116405378A true CN116405378A (en) 2023-07-07

Family

ID=87010089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310390155.XA Pending CN116405378A (en) 2023-04-11 2023-04-11 Log uploading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116405378A (en)

Similar Documents

Publication Publication Date Title
TWI599976B (en) Application store interface for remote management of client devices
US8788699B2 (en) Information processing apparatus and document data producing method
CN107888656B (en) Calling method and calling device of server-side interface
US20120117189A1 (en) Method and apparatus for obtaining feedback from a device
CN112583898B (en) Business process arrangement method, device and readable medium
CN112788270B (en) Video backtracking method, device, computer equipment and storage medium
CN103733568A (en) Stream processing using a client-server architecture
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
CN109542867B (en) Distributed data acquisition method and device
CN115001967A (en) Data acquisition method and device, electronic equipment and storage medium
US20170034030A1 (en) Monitoring single content page application transitions
CN111314355B (en) Authentication method, device, equipment and medium of VPN (virtual private network) server
CN116405378A (en) Log uploading method, device, equipment and medium
CN110933014B (en) Cloud service access method, device and computer-readable storage medium
CN111176948A (en) Method and system for monitoring personalized service index
CN115437710A (en) WebIDE container management method, webIDE container management apparatus, and computer storage medium
US10216926B2 (en) Isolation of untrusted code in operating system without isolation capability
US11687116B2 (en) Intelligent user equipment central processing unit core clock adjustment
CN110750804A (en) Report asynchronous downloading method, device, equipment and readable storage medium
CN113761433A (en) Service processing method and device
CN114048177B (en) Sharing method and device, electronic equipment, storage medium and program product
JP2015055877A (en) Transmitter, transmission method, transmission program and relay system
CN112286539B (en) Application member sharing method and device
WO2017117912A1 (en) Data acquisition method, apparatus and device, and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination