Sensitive log reporting method and device, equipment and storage medium

The automation of sensitive log reporting through a guardian thread and message middleware addresses the inefficiencies of manual methods, improving both the speed and reliability of log reporting in the financial technology sector.

CN119690934APending Publication Date: 2025-03-25KANG JIAN INFORMATION TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411607736.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The existing methods for reporting sensitive logs are cumbersome and inefficient due to reliance on manual processes, which consume significant resources and are prone to human intervention, hindering timely and reliable logging.

Method used

A method that automates the reporting of sensitive logs through a business system's guardian thread, which creates a blocking queue and utilizes a message middleware to send logs to a database, eliminating the need for manual intervention and reducing reporting time.

Benefits of technology

This approach enhances the efficiency and reliability of sensitive log reporting by automating the process, reducing human error and resource consumption, and ensures timely logging without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690934A_ABST
    Figure CN119690934A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of big data, can be applied to the field of financial science and technology, and discloses a sensitive log reporting method, device and equipment and a storage medium. When the data information meets a preset condition, starting a daemon thread of the service system; controlling the daemon thread to create a blocking queue of the service system; when the sensitive log of the service system exists in the blocking queue, obtaining an initialization message of preset message middleware; when the initialization message is a preset message, sending the sensitive log to message middleware; and reporting the sensitive log to a preset database through the message middleware. The sensitive log reporting efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology and can be applied to the field of financial technology. In particular, the present invention relates to a sensitive log reporting method, device, equipment and storage medium. Background Art

[0002] Sensitive logs often contain important business data, user privacy information, or system security details. This information is crucial to the operational security of an enterprise and the protection of user privacy. Reporting these sensitive logs can help enterprises promptly identify and respond to potential security threats, data leaks, or violations, thereby ensuring the security of corporate assets and user information.

[0003] However, the existing sensitive log reporting process is cumbersome and not conducive to improving the efficiency of sensitive log reporting. This is because the existing technology mainly uses manual reporting to report sensitive logs. Manual reporting consumes a lot of human resources and time resources, increases the reporting time of sensitive logs, and is easily affected by manual intervention. Therefore, it is not conducive to improving the efficiency of sensitive log reporting. Summary of the Invention

[0004] The present invention provides a sensitive log reporting method, apparatus, computer equipment and storage medium to solve the technical problem that the existing sensitive log reporting process is cumbersome and is not conducive to improving the reporting efficiency of sensitive logs.

[0005] First, a sensitive log reporting method is provided, including:

[0006] Obtain data information from business systems;

[0007] When the data information meets the preset conditions, starting the daemon thread of the business system;

[0008] Controlling the daemon thread to create a blocking queue for the business system;

[0009] When the blocking queue contains sensitive logs of the business system, obtaining an initialization message of a preset message middleware;

[0010] When the initialization message is a preset message, sending the sensitive log to the message middleware;

[0011] The sensitive log is reported to a preset database through the message middleware.

[0012] Furthermore, when the data information meets a preset condition, starting the daemon thread of the business system includes:

[0013] When the data information contains sensitive information in the preset conditions, obtaining the current state of the switch option of the business system;

[0014] When the current state is the enabled state, the daemon thread of the business system is started.

[0015] Furthermore, controlling the daemon thread to create a blocking queue for the business system includes:

[0016] Obtaining a preset path, and reading a creation instruction through the preset path;

[0017] Execute the creation instruction to control the daemon thread to create a blocking queue of the business system.

[0018] Furthermore, when the blocking queue contains sensitive logs of the business system, obtaining a preset message middleware initialization message includes:

[0019] When the blocking queue contains sensitive logs of the business system, an initialization instruction is sent to a preset message middleware;

[0020] Obtain the initialization message returned by the preset message middleware according to the initialization instruction.

[0021] Furthermore, when the initialization message is a preset message, sending the sensitive log to the message middleware includes:

[0022] When the initialization message is a preset message, obtaining a data reading instruction;

[0023] The sensitive log is read in the target position of the blocking queue through the data reading instruction, and the sensitive log is sent to the message middleware.

[0024] Furthermore, the reporting of the sensitive log to a preset database through the message middleware includes:

[0025] Read the preset upload time and determine whether the current time is the upload time;

[0026] When the current time is the upload time, the sensitive log is reported to a preset database through the message middleware, and the database includes one of the hive database and the TiDB database or a combination thereof.

[0027] Furthermore, when the blocking queue contains sensitive logs of the business system, after obtaining the preset initialization message of the message middleware, the sensitive log reporting method includes:

[0028] When the initialization message is not the preset message, the sensitive log is read and stored in a local file.

[0029] In a second aspect, a sensitive log reporting device is provided, comprising:

[0030] The first acquisition module is used to obtain data information of the business system;

[0031] A startup module, configured to start a daemon thread of the business system when the data information meets a preset condition;

[0032] A creation module, used to control the daemon thread to create a blocking queue for the business system;

[0033] A second acquisition module is used to obtain a preset message middleware initialization message when the blocking queue contains a sensitive log of the business system;

[0034] A sending module, configured to send the sensitive log to the message middleware when the initialization message is a preset message;

[0035] The reporting module is used to report the sensitive log to a preset database through the message middleware.

[0036] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned sensitive log reporting method are implemented.

[0037] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned sensitive log reporting method are implemented.

[0038] The present application provides a sensitive log reporting method, apparatus, computer equipment and storage medium, which obtain data information of a business system; when the data information meets preset conditions, start the daemon thread of the business system; control the daemon thread to create a blocking queue of the business system; when the blocking queue contains a sensitive log of the business system, obtain an initialization message of a preset message middleware; when the initialization message is a preset message, send the sensitive log to the message middleware; through the message middleware, report the sensitive log to a preset database, which has two beneficial effects. On the one hand, the sensitive log is reported to the preset database through the message middleware. Since manual reporting is not required, the reporting time of the sensitive log is reduced, which is conducive to improving the reporting efficiency of the sensitive log; on the other hand, since the sensitive log is automatically reported, it will not be affected by manual intervention, which is conducive to improving the reliability of the reported sensitive log. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 This is a schematic diagram of an application environment of a sensitive log reporting method according to an embodiment of the present invention;

[0041] Figure 2 A flowchart of a sensitive log reporting method provided by one embodiment of the present invention;

[0042] Figure 3 yes Figure 1 A schematic flow chart of a specific implementation of step S23;

[0043] Figure 4 yes Figure 1 A schematic flow chart of a specific implementation of step S25;

[0044] Figure 5 yes Figure 1 A schematic flow chart of a specific implementation of step S26;

[0045] Figure 6 This is a structural diagram of a sensitive log reporting device according to an embodiment of the present invention;

[0046] Figure 7 is a structural diagram of a computer device in one embodiment of the present invention;

[0047] Figure 8 FIG. 2 is another structural diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0049] See also Figure 1 , Figure 1 This is a schematic diagram of an application environment of a sensitive log reporting method according to an embodiment of the present invention. The sensitive log reporting method provided by the embodiment of the present invention can be applied in the following situations: Figure 1In an application environment, a client communicates with a server through a network.

[0050] The server obtains data information of the business system through the client;

[0051] When the data information meets the preset conditions, starting the daemon thread of the business system;

[0052] Controlling the daemon thread to create a blocking queue for the business system;

[0053] When the blocking queue contains sensitive logs of the business system, obtaining an initialization message of a preset message middleware;

[0054] When the initialization message is a preset message, sending the sensitive log to the message middleware;

[0055] The sensitive log is reported to a preset database through the message middleware.

[0056] In the solution implemented by the above-mentioned sensitive log reporting method, device, equipment and medium, the beneficial effects are in two aspects. On the one hand, the sensitive log is reported to a preset database through the message middleware. Since manual reporting is not required, the reporting time of the sensitive log is reduced, which is conducive to improving the reporting efficiency of the sensitive log; on the other hand, since the sensitive log is automatically reported, it will not be affected by manual intervention, which is conducive to improving the reliability of the reported sensitive log.

[0057] The device running the client is referred to as a client device.

[0058] The device running the server is referred to as the server device.

[0059] The client devices may include but are not limited to various personal computers, laptops, smartphones, tablet computers, and portable wearable devices.

[0060] The server device may be implemented as an independent server or a server cluster consisting of multiple servers.

[0061] See also Figure 2 , Figure 2 A flowchart of a sensitive log reporting method provided in one embodiment of the present invention includes the following steps:

[0062] S21, obtaining data information of the business system;

[0063] Among them, the business system of the target platform is connected, and data information is read from the data file of the business system. The target platform includes a financial platform, a technology platform, and an insurance platform.

[0064] A financial platform is an online platform that integrates financial services. Leveraging internet and information and communication technologies, it provides users with traditional financial services, such as deposits and loans, payment settlements, investment and wealth management, and financing and lending, in a digital, networked, and intelligent manner. Financial platforms typically feature user-friendly interfaces, allowing users to conduct financial transactions, query account information, access financial news, and participate in financial market activities anytime, anywhere, via their mobile phones or computers.

[0065] A technology platform refers to a comprehensive online platform built on modern information technology, particularly cutting-edge technologies such as the internet, big data, cloud computing, and artificial intelligence, integrating technology research and development, product innovation, service provision, and resource sharing. Technology platforms not only provide developers, entrepreneurs, and businesses with convenient development tools, cloud services, and data storage and processing capabilities, but also facilitate the rapid transformation and application of technological achievements, accelerating technological innovation and industrial upgrading. Through open application programming interfaces (APIs), software development kits, and a rich developer community, technology platforms lower the threshold for technological innovation and stimulate innovation across society.

[0066] Insurance platforms, in particular, are comprehensive service platforms that leverage internet technology and platform models to provide insurance products and related services to users online. Typically operated by insurance companies, insurance platforms offer convenient and efficient insurance services to consumers and businesses. They not only offer a wide range of insurance products for users to choose from and purchase, but also provide a one-stop insurance service process encompassing insurance consultation, product comparison, online insurance application, policy management, and claims processing. Through insurance platforms, users can learn about insurance products, select the right one for them, and enjoy convenient online purchase and claims processing services.

[0067] S22, when the data information meets the preset conditions, starting the daemon thread of the business system;

[0068] When the data information meets a preset condition, starting the daemon thread of the business system includes:

[0069] When the data information contains sensitive information in the preset conditions, obtaining the current state of the switch option of the business system;

[0070] When the current state is the enabled state, the daemon thread of the business system is started.

[0071] Among them, the sensitive information includes personal basic information, personal extended information, personal biometric information, personal health and physiological information, personal communication information, personal property information, personal supplementary information, enterprise registration information, enterprise communication information, enterprise operation information, enterprise financial information, and enterprise strategic information.

[0072] Personal basic information includes but is not limited to personal name, birthday, gender, ethnicity, nationality, family relationship, address, personal mobile phone number, landline number, and email address.

[0073] Personal extended information includes but is not limited to identity card, military officer ID, passport, driver's license, work permit, access pass, social security card, and residence permit.

[0074] Personal biometric information includes but is not limited to personal genes, fingerprints, voiceprints (ID_BI_SP), palm prints, ear pinnae, irises, and facial features.

[0075] Personal health and physiological information includes but is not limited to medical consultation records, prescriptions, physical examination reports, health records, medical history, symptoms, hospitalization records, doctor's orders, test reports, surgery and anesthesia records, nursing records, medication records, drug and food allergy information, fertility information, diagnosis and treatment status, weight, height, and lung capacity.

[0076] Among them, medical history includes but is not limited to family medical history, current medical history, infectious disease history, and past medical history.

[0077] Personal communication information includes but is not limited to communication records, content, SMS, MMS, emails, and data describing personal communications.

[0078] Personal property information includes but is not limited to bank account numbers, payment accounts, deposit information, real estate information, license plates and vehicle frames, insurance policy information, financial management information, credit records, credit information, transaction and consumption records, cash flow records, virtual property information and electronic insurance policies.

[0079] Deposit information includes but is not limited to the amount of funds and payment and receipt records.

[0080] Policy information includes but is not limited to the insured, beneficiary, insurance type and amount.

[0081] Financial information includes but is not limited to the subscriber, product name, and amount.

[0082] Virtual property information includes but is not limited to virtual currency, virtual transaction information, and game redemption codes.

[0083] Supplementary personal information includes but is not limited to marital history, religious beliefs, sexual orientation, undisclosed criminal records and rights and interests.

[0084] Enterprise registration information includes but is not limited to enterprise name, legal person information, industrial and commercial registration, and business license.

[0085] Corporate communication information includes but is not limited to the telephone number, fax number, and email address of the corporate legal person or corporate contact.

[0086] Business operation information includes but is not limited to user statistics, order statistics, business information, and Internet hospital data.

[0087] Corporate financial information includes but is not limited to accounting information, budget information, report information, tax information, liabilities and investment information.

[0088] Corporate strategic information includes but is not limited to planning information, meeting information, and project information.

[0089] S23, controlling the daemon thread to create a blocking queue for the business system;

[0090] A daemon thread is a special type of thread in programming. It primarily serves user threads and performs auxiliary or supportive tasks in the background. While not essential for the operation of an application, daemon threads can provide additional functionality and services, thereby improving program stability and performance.

[0091] A blocking queue is a queue data structure with special operational behavior in a multithreaded environment. In a blocking queue, the existence of data is determined by both producer and consumer threads. The producer thread is responsible for inserting data elements into the queue, while the consumer thread is responsible for retrieving and processing these data elements from the queue.

[0092] The producer thread places log data into a pre-configured blocking queue. The blocking feature of the blocking queue ensures that when the queue is full, the worker thread will be blocked, thus avoiding problems such as memory overflow caused by excessive log data.

[0093] Blocking queues allow producer threads to continue producing data even when the queue is not full, without worrying about where to store the data. Consumer threads can continue consuming data even when the queue is not empty, without having to frequently check the queue status. Therefore, blocking queues provide a buffering and synchronization function in log processing, making logging more efficient and reliable.

[0094] S24, when the blocking queue contains sensitive logs of the business system, obtaining a preset initialization message of the message middleware;

[0095] Among them, sensitive logs are logs that record sensitive information.

[0096] Among them, the main function of sensitive logs is to help enterprises or organizations track and record system activities. Sensitive logs need to be protected to prevent illegal access or abuse.

[0097] Wherein, when the blocking queue contains sensitive logs of the business system, obtaining a preset message middleware initialization message includes:

[0098] When the blocking queue contains sensitive logs of the business system, an initialization instruction is sent to a preset message middleware;

[0099] Obtain the initialization message returned by the preset message middleware according to the initialization instruction.

[0100] S25, when the initialization message is a preset message, sending the sensitive log to the message middleware;

[0101] Exemplarily, the preset message includes a success message, a normal message, or a combination thereof.

[0102] Wherein, when the initialization message is a preset message, sending the sensitive log to the message middleware includes:

[0103] When the initialization message is a success message or a normal message, the sensitive log is sent to the message middleware.

[0104] When the initialization message is a success message or a normal message, it indicates that the message middleware has been correctly configured and is ready to enter the normal running state. This ensures that the message middleware can run as expected without worrying about problems or exceptions caused by improper initialization, thereby improving the reliability and stability of the message middleware.

[0105] S26: Report the sensitive log to a preset database through the message middleware.

[0106] Exemplarily, the message middleware includes one of Kafka and RabbitMQ or a combination thereof.

[0107] Preferably, the message middleware adopts Kafka.

[0108] Among them, Kafka is an open source distributed stream processing platform. Kafka is based on the publish / subscribe model and can be regarded as a high-performance, high-throughput, and scalable distributed message queue system.

[0109] Among them, Kafka has the characteristics of high throughput and low latency, and can process millions of messages per second, making it very suitable for processing large amounts of real-time data. In addition, Kafka can be easily expanded to thousands of producers and consumers through a distributed architecture, so it can cope with growing data traffic and workloads.

[0110] The Chinese name of RabbitMQ is "Message Queue", and the English name of RabbitMQ is "Rabbit MessageQueue". RabbitMQ is an open source message queue service software.

[0111] Wherein, when the blocking queue contains sensitive logs of the business system, after obtaining the preset initialization message of the message middleware, the sensitive log reporting method includes:

[0112] When the initialization message is not the preset message, the sensitive log is read and stored in a local file.

[0113] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, the sensitive logs are reported to a preset database through the message middleware. Since manual reporting is unnecessary, the reporting time of the sensitive logs is reduced, which is beneficial to improving the reporting efficiency of the sensitive logs. On the other hand, since the sensitive logs are automatically reported, they will not be affected by manual intervention, which is beneficial to improving the reliability of the reported sensitive logs.

[0114] See also Figure 3 , Figure 3 yes Figure 1 A specific implementation flow diagram of step S23 is described in detail as follows:

[0115] S31, obtaining a preset path, and reading a creation instruction through the preset path;

[0116] S32, executing the creation instruction to control the daemon thread to create a blocking queue of the business system.

[0117] In this embodiment of the present invention, a blocking queue provides data buffering, balancing the speed differences between producer and consumer threads and ensuring smooth transmission and processing of sensitive logs. Therefore, creating a blocking queue not only improves the efficiency and reliability of multi-threaded programs but also simplifies inter-thread communication and synchronization.

[0118] See also Figure 4 , Figure 4 yes Figure 1 A specific implementation flow diagram of step S25 is described in detail as follows:

[0119] S41, when the initialization message is a preset message, obtaining a data reading instruction;

[0120] S42: Read the sensitive log in the target position of the blocking queue through the data reading instruction, and send the sensitive log to the message middleware.

[0121] The method of reading the sensitive log in the target position of the blocking queue through the data reading instruction and sending the sensitive log to the message middleware includes:

[0122] The consumer thread reads the sensitive log in the target position of the blocking queue through a data reading instruction, and sends the sensitive log to the message middleware.

[0123] Among them, the automatic blocking and wake-up mechanism of the blocking queue simplifies the synchronization control between threads and avoids the complexity and performance overhead that may be brought by the traditional locking mechanism.

[0124] In the embodiment of the present invention, the sensitive log is read and sent to the message middleware, and the message middleware can distribute the sensitive log to different receiving devices.

[0125] See also Figure 5 , Figure 5 yes Figure 1 A specific implementation flow diagram of step S26 is described in detail as follows:

[0126] S51, reading a preset upload time, and determining whether the current time is the upload time;

[0127] S52, when the current time is the upload time, the sensitive log is reported to a preset database through the message middleware, and the database includes one of the hive database and the TiDB database or a combination thereof.

[0128] The Hive database, also known as the Hive Data Warehouse, is a distributed data warehouse framework based on Hadoop, designed for big data analysis and processing. The Hive database maps structured data files into database tables and provides a query language that allows users to easily query and analyze large datasets stored in the Hadoop distributed file system.

[0129] Among them, Hadoop is an open source distributed system infrastructure designed for processing and analyzing large-scale data sets.

[0130] Among them, TiDB database is an open source distributed relational database that integrates the capabilities of online transaction processing and online analytical processing.

[0131] In an embodiment of the present invention, when the current time is the upload time, the sensitive log is reported to a preset database through the message middleware. Since manual reporting is not required, the reporting time of the sensitive log is reduced, which is beneficial to improving the reporting efficiency of the sensitive log. On the other hand, since the sensitive log is automatically reported, it will not be affected by manual intervention, which is beneficial to improving the reliability of the reported sensitive log.

[0132] See also Figure 6, Figure 6 This is a structural diagram of a sensitive log reporting device according to an embodiment of the present invention. Figure 6 As shown, the sensitive log reporting device includes a first acquisition module 101, a startup module 102, a creation module 103, a second acquisition module 104, a sending module 105, and a reporting module 106. The functional modules are described in detail as follows:

[0133] The first acquisition module 101 is used to acquire data information of the business system;

[0134] A starting module 102 is configured to start a daemon thread of the business system when the data information meets a preset condition;

[0135] A creation module 103, configured to control the daemon thread to create a blocking queue for the business system;

[0136] The second acquisition module 104 is configured to acquire a preset message middleware initialization message when the blocking queue contains a sensitive log of the business system;

[0137] A sending module 105, configured to send the sensitive log to the message middleware when the initialization message is a preset message;

[0138] The reporting module 106 is configured to report the sensitive log to a preset database via the message middleware.

[0139] In one embodiment, the startup module 102 includes:

[0140] A first acquisition subunit is configured to acquire a current state of a switch option of the business system when the data information contains sensitive information in a preset condition;

[0141] The startup subunit is used to start the daemon thread of the business system when the current state is the startup state.

[0142] In one embodiment, the creation module 103 includes:

[0143] A reading subunit, configured to obtain a preset path and read a creation instruction through the preset path;

[0144] The creation subunit is used to execute the creation instruction and control the daemon thread to create a blocking queue of the business system.

[0145] In one embodiment, the second acquisition module 104 includes:

[0146] A sending subunit, configured to send an initialization instruction to a preset message middleware when a sensitive log of the business system exists in the blocking queue;

[0147] The second acquiring subunit is configured to acquire an initialization message returned by a preset message middleware according to the initialization instruction.

[0148] In one embodiment, the sending module 105 includes:

[0149] A third acquiring subunit, configured to acquire a data reading instruction when the initialization message is a preset message;

[0150] The sending subunit is used to read the sensitive log in the target position of the blocking queue through the data reading instruction, and send the sensitive log to the message middleware.

[0151] In one embodiment, the reporting module 106 includes:

[0152] The judgment subunit is used to read the preset upload time and judge whether the current time is the upload time;

[0153] The reporting subunit is used to report the sensitive log to a preset database through the message middleware when the current time is the upload time. The database includes one of the hive database and TiDB database or a combination thereof.

[0154] In one embodiment, the sensitive log reporting device further includes:

[0155] A storage module is used to read the sensitive log and store the sensitive log in a local file when the initialization message is not the preset message.

[0156] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, the sensitive logs are reported to a preset database through the message middleware. Since manual reporting is unnecessary, the reporting time of the sensitive logs is reduced, which is beneficial to improving the reporting efficiency of the sensitive logs. On the other hand, since the sensitive logs are automatically reported, they will not be affected by manual intervention, which is beneficial to improving the reliability of the reported sensitive logs.

[0157] For the specific limitations of the sensitive log reporting device, please refer to the limitations of the sensitive log reporting method above, which will not be repeated here.

[0158] Each module in the sensitive log reporting device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.

[0159] See also Figure 7 , Figure 7 This is a schematic diagram of a computer device in one embodiment of the present invention. In one embodiment, a computer device is provided. The computer device may be a server device, and its internal structure diagram may be as shown in FIG. Figure 7 The computer device includes a processor, a memory, and a network interface connected via a system bus.

[0160] The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. When executed by the processor, the computer program can implement the functions or steps of a sensitive log reporting method on the server device.

[0161] See also Figure 8 , Figure 8 This is another structural diagram of a computer device in one embodiment of the present invention. In one embodiment, a computer device is provided. The computer device may be a client device, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, memory, network interface, display screen and input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. When the computer program is executed by the processor, the functions or steps of a sensitive log reporting method can be implemented on the client device.

[0162] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0163] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant description in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0164] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0165] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include the plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of a stated subsample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.

[0166] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0167] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments of the present disclosure can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0168] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A sensitive log reporting method, characterized in that: include: Obtain data information from business systems; When the data information meets the preset conditions, starting the daemon thread of the business system; Control the daemon thread to create a blocking queue for the business system; When the blocking queue contains sensitive logs of the business system, obtaining an initialization message of a preset message middleware; When the initialization message is a preset message, sending the sensitive log to the message middleware; The sensitive log is reported to a preset database through the message middleware.

2. The sensitive log reporting method according to claim 1, characterized in that: When the data information meets the preset condition, starting the daemon thread of the business system includes: When the data information contains sensitive information in the preset condition, obtaining the current state of the switch option of the business system; When the current state is the enabled state, the daemon thread of the business system is started.

3. The sensitive log reporting method according to claim 1, characterized in that: The controlling the daemon thread to create a blocking queue of the business system includes: Obtain a preset path, and read a creation instruction through the preset path; Execute the creation instruction to control the daemon thread to create a blocking queue of the business system.

4. The sensitive log reporting method according to claim 1, characterized in that: When the blocking queue contains sensitive logs of the business system, obtaining a preset initialization message of the message middleware includes: When the blocking queue contains sensitive logs of the business system, an initialization instruction is sent to a preset message middleware; Obtain the initialization message returned by the preset message middleware according to the initialization instruction.

5. The sensitive log reporting method according to claim 1, characterized in that: When the initialization message is a preset message, sending the sensitive log to the message middleware includes: When the initialization message is a preset message, obtaining a data reading instruction; Through the data reading instruction, the sensitive log is read in the target position of the blocking queue, and the sensitive log is sent to the message middleware.

6. The sensitive log reporting method according to claim 1, characterized in that: The reporting of the sensitive log to a preset database through the message middleware includes: Read the preset upload time and determine whether the current time is the upload time; When the current time is the upload time, the sensitive log is reported to a preset database through the message middleware, and the database includes one of the hive database and the TiDB database or a combination thereof.

7. The sensitive log reporting method according to any one of claims 1 to 6, characterized in that: When the blocking queue contains sensitive logs of the business system, after obtaining the preset initialization message of the message middleware, the sensitive log reporting method includes: When the initialization message is not the preset message, the sensitive log is read and stored in a local file.

8. A sensitive log reporting device, characterized in that: include: The first acquisition module is used to acquire data information of the business system; A startup module, used to start the daemon thread of the business system when the data information meets the preset conditions; A creation module, used to control the daemon thread to create a blocking queue of the business system; A second acquisition module is used to acquire a preset initialization message of the message middleware when the blocking queue contains sensitive logs of the business system; A sending module, used for sending the sensitive log to the message middleware when the initialization message is a preset message; The reporting module is used to report the sensitive log to a preset database through the message middleware.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the sensitive log reporting method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the sensitive log reporting method as described in any one of claims 1 to 7 are implemented.