WO2020233013A1 - 一种数据处理方法、设备及存储介质 - Google Patents
一种数据处理方法、设备及存储介质 Download PDFInfo
- Publication number
- WO2020233013A1 WO2020233013A1 PCT/CN2019/117925 CN2019117925W WO2020233013A1 WO 2020233013 A1 WO2020233013 A1 WO 2020233013A1 CN 2019117925 W CN2019117925 W CN 2019117925W WO 2020233013 A1 WO2020233013 A1 WO 2020233013A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- log
- channel
- data
- business
- log channel
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Definitions
- This application relates to the field of computer technology, and in particular to a data processing method, device and storage medium.
- log collection is mainly based on proactively collecting logs from the application server for reporting.
- proxy method Each application deployment server must install an additional agent and perform daily operation and maintenance separately. The agent needs to occupy part of the hardware resources of the application server. The peak period of the business may affect the business.
- a new application is added to the log analysis platform, it is necessary to manually add a log channel between log collection and storage, and then monitor the agent from the message pipeline. The log is migrated to the log storage, the efficiency of log acquisition is low, and the query and management of the log takes a lot of time to retrieve, and the processing process is cumbersome.
- the embodiments of the present application provide a data processing method, device, and storage medium, which can improve the efficiency of log data processing.
- One aspect of the embodiments of the present application provides a data processing method, which may include:
- the log data is stored in the log storage address corresponding to the log channel according to the log channel list.
- a data processing device which may include:
- a data acquisition unit for acquiring log data generated according to business data and log tags corresponding to the log data
- the channel creation unit is configured to obtain the log channel name corresponding to the log tag from the log channel list, create a log channel corresponding to the log channel name, and store the log data in the created log channel,
- the log channel is used to temporarily store log data generated based on business data;
- the log storage unit is configured to store the log data in a log storage address corresponding to the log channel according to the log channel list when log data is detected in the log channel.
- the third aspect of the embodiments of the present application provides a data processing device, including a processor and a memory; wherein the memory stores a computer program, and the computer program is adapted to be loaded by the processor and executed as in the embodiments of the present application.
- the first method is a data processing device, including a processor and a memory; wherein the memory stores a computer program, and the computer program is adapted to be loaded by the processor and executed as in the embodiments of the present application.
- the fourth aspect of the embodiments of the present application provides a computer non-volatile readable storage medium
- the computer non-volatile readable storage medium stores a computer program
- the computer program includes program instructions
- the program instructions are When executed by the processor, the method in the first aspect of the embodiment of the present application is executed.
- the self-discovery mechanism can automatically identify newly added log data and automatically monitor the corresponding log channel to realize automatic storage and archiving of logs, avoid the problem of manually pulling logs for storage, and improve the efficiency of log processing .
- FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present application
- FIG. 2 is a schematic flowchart of another data processing method provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of an example of a data processing method provided by an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of a data processing device provided by an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
- Fig. 6 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
- the data processing method provided by the embodiments of this application can be applied to scenarios where a large number of log files are collected, archived, and historical log files are regularly organized.
- the business processing of an enterprise includes multiple processing modules, and each module corresponds to The business generates different log files.
- the log files corresponding to different modules require different temporary storage channels.
- the log files of different modules are stored in the corresponding storage addresses.
- the data processing equipment obtains the log data generated based on the business data and the The log label corresponding to the log data; obtain the log channel name corresponding to the log label from the log channel list, create a log channel corresponding to the log channel name, and store the log data in the created log channel, so
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, the log data is stored in the log storage address corresponding to the log channel according to the log channel list ,
- the self-discovery mechanism it can automatically identify the new log data and automatically monitor the corresponding log channel to realize the automatic storage and archiving of the log, avoid the problem of manually pulling the log for storage, and improve the efficiency of log processing.
- the data processing devices involved in the embodiments of the present application may include: tablet computers, smart phones, personal computers (PCs), notebook computers, palmtop computers, mobile Internet devices (MIDs), and other terminal devices that can process log files.
- PCs personal computers
- MIDs mobile Internet devices
- FIG. 1 provides a schematic flowchart of a data processing method according to an embodiment of this application.
- the method of the embodiment of the present application may include the following steps S101 to S103.
- S101 Obtain log data generated according to business data and a log tag corresponding to the log data;
- the data processing device obtains the log data generated according to the business data and the log tag corresponding to the log data.
- the business data is the corresponding data generated according to the user's business request for a specific business, and processes various
- the back-end server for business data generates the log data according to the business data.
- the server may be a back-end terminal of an insurance company that processes financial services.
- the server generates corresponding log data in the process of processing user business data, and the log data carries There is a log tag corresponding to the log data, and the log tag is generated according to the business module to which the server processing the business data belongs.
- the log tags of the log data corresponding to business data generation are the same.
- One log data corresponds to a log tag.
- Different log data can have the same log tag. For example, if a user applies for an insurance from an insurance company, the back-end server of the insurance company will apply according to the insurance application.
- Request to generate the log data corresponding to the application request and the log tag corresponding to the log data the data processing device obtains the log data and the log tag corresponding to the log data, the log tag corresponding to the business request.
- the log data corresponding to other service requests under the service module has the same log label.
- the data processing device obtains the log channel name corresponding to the log tag from the log channel list, creates a log channel corresponding to the log channel name, and stores the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data.
- the log channel list stores the association relationship between the log tag, the log channel name, and the log storage address, and the association relationship is the log tag, A corresponding relationship between the log channel name and the log storage address.
- the data processing device obtains the log channel name corresponding to the log tag from the log channel list, creates the log channel corresponding to the log channel name, and stores the log Data is stored in the created log channel.
- the log channel corresponds to the business module one-to-one
- the log data generated by different business modules are stored in different log channels
- the log channels correspond to the log tags , That is, different log tags correspond to different log channels.
- the data processing equipment can periodically detect whether to create a new log channel through an automated script. If a new log channel is created, an application process will be automatically started to log the log channel. For data processing, when an invalid log channel is detected, the automated script will clean up the invalid log channel.
- the data processing device when the data processing device detects that log data exists in the log channel, it stores the log data in the log storage address corresponding to the log channel according to the log channel list. It can be understood that when the data is processed When the device detects the existence of log data in the log channel, the data processing device obtains the log storage address corresponding to the log channel name of the log channel from the log channel list, and stores the log data in the log storage address.
- the storage address is used to store log data. Specifically, it can be a storage engine or storage space in a log storage device. It should be noted that the data processing device performs further processing on the log data before storing the log data in the log storage address. Processing, for example, deleting duplicate data in log data.
- the log data generated according to the business data and the log tag corresponding to the log data are obtained; the log channel name corresponding to the log tag is obtained from the log channel list, and the log channel name corresponding is created And store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, according to the The log channel list stores the log data to the log storage address corresponding to the log channel.
- FIG. 2 provides a schematic flowchart of a data processing method according to an embodiment of this application.
- the method of the embodiment of the present application may include the following steps S201 to S209.
- S202 Insert a business keyword and a globally unique business feature code related to the business data corresponding to the log data into the log data;
- the data processing device inserts a business keyword and a globally unique business feature code related to the business data corresponding to the log data into the log data.
- the business keyword is related to the business data
- the service keyword may specifically be the log generation time, the user’s mobile phone number, user name, or credentials, etc.
- the globally unique service feature code is the global serial number, and the same service corresponds to a service feature code Different services correspond to different service feature codes.
- the logs generated by the same service have the same service feature codes. For example, a service needs to be processed on several different service modules, and each of the several service modules Corresponding log data will be generated, and several log data corresponding to this business have the same business feature code.
- S203 Obtain a log tag corresponding to at least one business module that generates log data, obtain a log channel name corresponding to each log tag and a log storage address corresponding to each log channel name; The label, the association relationship between each log channel name and each log storage address are stored in the log channel list;
- the data processing device obtains log tags corresponding to at least one business module that generates log data, obtains the log channel name corresponding to each log tag and the log storage address corresponding to each log channel name;
- the association relationship between the log tags, each log channel name, and each log storage address is stored in a log channel list. It can be understood that the log channel list is used to store log tags, log The association relationship between the channel name and the log storage address, and the association relationship is a correspondence between the log label, the log channel name, and the log storage address.
- S204 Detect whether there is a log channel corresponding to the log label in the log channel set according to the log channel list; if so, obtain the log channel corresponding to the log label in the log channel set, and store the log data in the log label Corresponding log channel;
- the data processing device detects whether there is a log channel corresponding to the log label in the log channel set according to the log channel list; if it exists, obtains the log channel corresponding to the log label in the log channel set, and converts the log data Stored to the log channel corresponding to the log tag, it can be understood that the data processing device obtains the log channel name corresponding to the log tag from the log channel list, and detects whether there is a log channel to which the log channel name belongs in the log channel set
- the log channel set may include multiple log channels. If the log channel to which the log channel name belongs exists in the log channel set, the log data is stored in the log channel.
- the corresponding relationship is obtained according to the log channel list, the corresponding relationship is set in advance, and the user can manage the existing corresponding relationship.
- S206 Detect whether there is log data in the log channel according to a preset period; when log data is detected in the log channel, obtain the log storage address corresponding to the log channel name to which the log channel belongs from the log channel list; Store the log data to the log storage address.
- the data processing device detects whether there is log data in the log channel according to a preset period; when log data is detected in the log channel, it obtains the log channel name corresponding to the log channel from the log channel list.
- Log storage address the log data is stored to the log storage address. It is understandable that the data processing device detects whether there is log data in the log channel according to a preset period, and the preset detection period can be from an automated script
- the data processing device acquires the log storage address corresponding to the log channel name to which the log channel belongs from the log channel list, and stores the log data in the log storage In the address, the log storage address is used to store log data. Specifically, it may be a storage engine or storage space in a log storage device. It should be noted that before the data processing device stores the log data in the log storage address, it will Perform further processing on the log data, for example, delete duplicate data in the log data.
- the data processing device when it detects that there is sensitive information in the log data, it uses special symbols to replace the sensitive information in the log data.
- the sensitive information includes the user's personal information or is Private information, such as the user's username or contact information
- the special symbol is an identifier used to hide sensitive information, such as an asterisk, specifically, when the data processing device detects that the user's name is in the log information , The user’s name is replaced by an asterisk, or the mobile phone number is detected in the log information, and the data processing device uses the asterisk to replace some digits in the mobile phone number, which improves the security of the information.
- S208 Obtain a log search request, and obtain an input keyword and an input feature code according to the log search request;
- the data processing device obtains the log retrieval request, and obtains the input keyword and input feature code according to the log retrieval request.
- the log retrieval request is an instruction for log retrieval, and the instruction may be a click Instruction or voice instruction
- the log retrieval request can be obtained by clicking the log retrieval interface on the touch screen, or clicking the corresponding button of the log retrieval.
- the data processing device obtains the log retrieval request and obtains the input key according to the log retrieval request Character and input feature code, the input keyword is a business keyword input by the user, and the input feature code is a business feature code input by the user.
- the data processing device matches the input keyword with the business keyword of the log data in the log storage address, and matches the input feature code with the globally unique business feature code of the log data in the log storage address; from the log storage
- the log data that successfully matches the input keyword and the input feature code is acquired from the address.
- the data processing device matches the input keyword with the business keyword of the log data in the log storage address,
- the input feature code is matched with the globally unique business feature code of the log data in the log storage address, and the log data that simultaneously matches the input keyword and the input feature code is obtained from the log storage address, and the matching
- the business keyword and the input keyword of the successful log data, and the business feature code of the successfully matched log data is the same as the input feature code, and the successfully matched log data is displayed on a display device.
- the display device may Is it a display screen or a projector.
- steps S201 and 205 in the embodiment of the present application please refer to the detailed description of steps S101 and S102 in the embodiment shown in FIG. 1, which will not be repeated here.
- the log data generated according to the business data and the log tag corresponding to the log data are obtained; the log channel name corresponding to the log tag is obtained from the log channel list, and the log channel name corresponding is created And store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, according to the The log channel list stores the log data to the log storage address corresponding to the log channel.
- the newly added log data can be automatically identified, and the corresponding log channel can be automatically monitored to realize the automatic storage and archiving of logs, which avoids
- the problem of manually pulling logs for storage improves the efficiency of log processing, and supports the insertion of a global identification code for marking a complete transaction in each log record, which facilitates the complete retrieval of a single business log and supports log desensitization processing , Improve the security of information.
- the log data server generated based on business data is a back-end terminal for the insurance company to process financial services.
- the back-end terminal includes multiple business modules, each The business module can process multiple services.
- the data processing device obtains the log data generated according to the business data and the log label corresponding to the log data.
- the business data under the same business module generates the same log label of the corresponding log data
- the data processing device receives Obtain the log channel name corresponding to the log tag from the log channel list, create a log channel corresponding to the log channel name, and store the log data in the created log channel, which is used for temporary storage according to Log data generated by business data, as shown in Figure 4, business module 1 corresponds to log tag 1, log tag 1 corresponds to log channel 1.
- the data processing device creates log channel 1 and The log data is stored in log channel 1, business module 2 corresponds to log label 2, and log label 2 corresponds to log channel 2.
- the data processing device For the log data generated by business module 2 according to the business data, the data processing device creates log channel 2 and sends the log The data is stored in log channel 2.
- the data processing device stores the log data in the log storage address corresponding to the log channel according to the log channel list, as shown in Figure 4 Shows that when log data is detected in log channel 1, log channel 2 or log channel 3, the data processing device obtains the log storage address corresponding to the log channel name to which the log channel belongs from the log channel list, and stores the log The data is stored in the log storage address.
- the data processing device 1 of the embodiment of the present application may include: a data acquisition unit 11, a channel creation unit 12, and a log storage unit 13.
- the data obtaining unit 11 is configured to obtain log data generated according to business data and log tags corresponding to the log data;
- the data acquisition unit 11 acquires log data generated according to business data and log tags corresponding to the log data.
- the business data is corresponding data generated according to a user's business request for a specific business, and processes each
- the back-end server for this kind of business data generates the log data according to the business data.
- the server may be a back-end terminal of an insurance company that processes financial services.
- the server generates corresponding log data in the process of processing the user’s business data.
- the log data Carrying a log tag corresponding to the log data, the log tag is generated according to the business module to which the server processing the business data belongs.
- the log tags of the corresponding log data generated by the business data are the same.
- One log data corresponds to a log tag.
- Different log data can have the same log tag.
- An application request generates log data corresponding to the application request and a log tag corresponding to the log data
- the data processing device obtains the log data and a log tag corresponding to the log data
- the log tag corresponds to the business request
- log data corresponding to other business requests under the business module have the same log label.
- the channel creation unit 12 is configured to obtain the log channel name corresponding to the log label from the log channel list, create a log channel corresponding to the log channel name, and store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data;
- the channel creation unit 12 obtains the log channel name corresponding to the log tag from the log channel list, creates a log channel corresponding to the log channel name, and stores the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data.
- the log channel list stores the association relationship between the log tag, the log channel name, and the log storage address, and the association relationship is the log tag , A corresponding relationship between the log channel name and the log storage address
- the data processing device obtains the log channel name corresponding to the log tag from the log channel list, creates the log channel corresponding to the log channel name, and then Log data is stored in the created log channel.
- the log channel corresponds to the business module one-to-one
- the log data generated by different business modules are stored in different log channels
- the log channel corresponds to the log Labels, that is, different log labels correspond to different log channels.
- the data processing equipment can periodically detect whether to create a new log channel through an automated script. If a new log channel is created, an application process will be automatically started to perform the log channel. In the processing of log data, when an invalid log channel is detected, the automated script will clean up the invalid log channel.
- the log storage unit 13 is configured to store the log data in the log storage address corresponding to the log channel according to the log channel list when log data is detected in the log channel.
- the log storage unit 13 when the log storage unit 13 detects that log data exists in the log channel, it stores the log data in the log storage address corresponding to the log channel according to the log channel list. It can be understood that when the data When the processing device detects the existence of log data in the log channel, the log storage unit 13 obtains the log storage address corresponding to the log channel name to which the log channel belongs from the log channel list, and stores the log data in the log storage address.
- the log storage address is used to store log data, which can be specifically a storage engine or storage space in a log storage device. It should be noted that the data processing device performs processing on the log data before storing the log data in the log storage address. Further processing, for example, delete duplicate data in the log data.
- the log data generated according to the business data and the log tag corresponding to the log data are obtained; the log channel name corresponding to the log tag is obtained from the log channel list, and the log channel name corresponding is created And store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, according to the The log channel list stores the log data to the log storage address corresponding to the log channel.
- the data processing device 1 of the embodiment of the present application may include: a data acquisition unit 11, a channel creation unit 12, a log storage unit 13, an association relationship storage and storage unit 14, a channel detection unit 15, and an information replacement unit 16. Insertion unit 17, search request unit 18, matching unit 19.
- the data obtaining unit 11 is configured to obtain log data generated according to business data and log tags corresponding to the log data;
- the inserting unit 17 is configured to insert business keywords and globally unique business feature codes related to the business data corresponding to the log data into the log data;
- the inserting unit 17 inserts a business keyword and a globally unique business feature code related to the business data corresponding to the log data into the log data.
- the business keyword is related to the business data.
- the service keyword may specifically be the log generation time, the user’s mobile phone number, user name, or credentials, etc.
- the globally unique service feature code is the global serial number, and the same service corresponds to a service feature code Different services correspond to different service feature codes.
- the logs generated by the same service have the same service feature codes. For example, a service needs to be processed on several different service modules, and each of the several service modules Corresponding log data will be generated, and several log data corresponding to this business have the same business feature code.
- the association relationship storage unit 14 is configured to obtain log tags corresponding to at least one business module that generates log data, obtain the log channel name corresponding to each log tag and the log storage address corresponding to each log channel name ; Store the association relationship between each log tag, each log channel name and each log storage address in the log channel list;
- the association relationship storage storage unit 14 obtains log tags corresponding to at least one business module that generates log data, obtains the log channel name corresponding to each log tag and the log storage address corresponding to each log channel name. ; Store the association relationship between each log tag, each log channel name, and each log storage address in a log channel list, it is understandable that the log channel list is used to store logs
- the association relationship between the label, the log channel name and the log storage address, and the association relationship is a correspondence between the log label, the log channel name and the log storage address.
- the channel detection unit 15 is configured to detect whether there is a log channel corresponding to the log label in the log channel set according to the log channel list; if it exists, obtain the log channel corresponding to the log label in the log channel set, and convert the log Data is stored in the log channel corresponding to the log tag;
- the channel detection unit 15 detects whether there is a log channel corresponding to the log label in the log channel set according to the log channel list; if it exists, obtains the log channel corresponding to the log label in the log channel set, and converts the log The data is stored in the log channel corresponding to the log tag. It is understandable that the channel detection unit 15 obtains the log channel name corresponding to the log tag from the log channel list, and detects whether there is a log channel name in the log channel set.
- the log channel, the log channel set may include multiple log channels, and if the log channel to which the log channel name belongs exists in the log channel set, the log data is stored in the log channel, and the log channel and the log The corresponding relationship of data is obtained according to the log channel list, the corresponding relationship is set in advance, and the user can manage the existing corresponding relationship.
- the channel creation unit 12 is configured to, if the log channel corresponding to the log label does not exist in the log channel set, obtain the log channel name corresponding to the log label from the log channel list, and create a log channel corresponding to the log channel name, And store the log data in the created log channel;
- the log storage unit 13 is configured to detect whether log data exists in the log channel according to a preset period; when log data is detected in the log channel, obtain the log channel name corresponding to the log channel from the log channel list Log storage address; store the log data to the log storage address.
- the log storage unit 13 detects whether there is log data in the log channel according to a preset period; when log data is detected in the log channel, obtains the log channel name corresponding to the log channel to which the log channel belongs from the log channel list.
- the data processing device When the data processing device detects the existence of log data in the log channel, the data processing device obtains the log storage address corresponding to the log channel name to which the log channel belongs from the log channel list, and stores the log data in In the log storage address, the log storage address is used to store log data, which may be a storage engine or storage space in a log storage device. It should be noted that the data processing device stores the log data before the log storage address , The log data will be further processed, for example, to delete duplicate data in the log data.
- the information replacement unit 16 is configured to replace the sensitive information in the log data with special symbols when it is detected that there is sensitive information in the log data;
- the information replacement unit 16 uses special symbols to replace the sensitive information in the log data.
- the sensitive information includes the user's personal information or It is private information, such as the user's username or contact information.
- the special symbol is an identifier used to hide sensitive information, such as an asterisk.
- the data processing device detects that the user's name exists in the log information When the user's name is replaced by an asterisk, or the mobile phone number is detected in the log information, the data processing device uses the asterisk to replace some digits in the mobile phone number, which improves the security of the information.
- the search request unit 18 is configured to obtain a log search request, and obtain an input keyword and an input feature code according to the log search request;
- the search request unit 18 obtains a log search request, and obtains an input keyword and an input feature code according to the log search request.
- the log search request is an instruction for log search, and the instruction may be Click command or voice command
- the log retrieval request can be by clicking the log retrieval interface on the touch screen, or by clicking the button corresponding to the log retrieval
- the data processing device obtains the log retrieval request, and obtains input according to the log retrieval request
- a keyword and an input feature code the input keyword is a business keyword input by a user
- the input feature code is a business feature code input by the user.
- the matching unit 19 is configured to match the input keyword with the service keyword, and match the input feature code with the service feature code; obtain the input keyword and the service feature code from the log storage address.
- the above input feature codes all match the log data successfully.
- the matching unit 19 matches the input keyword with the business keyword of the log data in the log storage address, and matches the input feature code with the globally unique business feature code of the log data in the log storage address; The log data that successfully matches the input keyword and the input feature code is acquired from the address. It is understandable that the matching unit 19 matches the input keyword with the business keyword of the log data in the log storage address.
- the input feature code is matched with the globally unique business feature code of the log data in the log storage address, and the log data that simultaneously matches the input keyword and the input feature code is obtained from the log storage address.
- the business keyword and input keyword of the successfully matched log data, and the business feature code of the successfully matched log data is the same as the input feature code, and the successfully matched log data is displayed on a display device, the display device It can be a display screen or a projector.
- the log data generated according to the business data and the log tag corresponding to the log data are obtained; the log channel name corresponding to the log tag is obtained from the log channel list, and the log channel name corresponding is created And store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, according to the The log channel list stores the log data to the log storage address corresponding to the log channel.
- the newly added log data can be automatically identified, and the corresponding log channel can be automatically monitored to realize the automatic storage and archiving of logs, which avoids
- the problem of manually pulling logs for storage improves the efficiency of log processing, and supports the insertion of a global identification code for marking a complete transaction in each log record, which facilitates the complete retrieval of a single business log and supports log desensitization processing , Improve the security of information.
- the embodiments of the present application also provide a computer non-volatile readable storage medium, the computer non-volatile readable storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executed as described above.
- the method steps of the embodiment shown in FIG. 1 to FIG. 3 for the specific execution process, please refer to the specific description of the embodiment shown in FIG. 1 to FIG. 3, which will not be repeated here.
- the data processing 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
- the communication bus 1002 is used to implement connection and communication between these components.
- the user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
- the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
- the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory.
- the memory 1005 may also be at least one storage device located far away from the foregoing processor 1001.
- the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a data processing application program.
- the user interface 1003 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1001 can be used to call the data processing application stored in the memory 1005 and execute The following operations:
- the log data is stored in the log storage address corresponding to the log channel according to the log channel list.
- the processor 1001 obtains the log channel name corresponding to the log tag from the log channel list, creates a log channel corresponding to the log channel name, and stores the log data Before the created log channel, perform the following operations:
- the processor 1001 when the processor 1001 executes the storage of the log data to the log storage address corresponding to the log channel when the log data is detected in the log channel, it specifically executes the following operations :
- the processor 1001 obtains the log channel name corresponding to the log tag from the log channel list, creates a log channel corresponding to the log channel name, and stores the log data Before the created log channel, perform the following operations:
- the processor 1001 specifically performs the following operations:
- the processor 1001 specifically executes the following operations after executing the acquiring log data generated according to the business data and the log tag corresponding to the log data:
- the processor 1001 specifically performs the following operations:
- the log data generated according to the business data and the log tag corresponding to the log data are obtained; the log channel name corresponding to the log tag is obtained from the log channel list, and the log channel name corresponding is created And store the log data in the created log channel.
- the log channel is used to temporarily store log data generated according to business data; when log data is detected in the log channel, according to the The log channel list stores the log data to the log storage address corresponding to the log channel.
- the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Claims (20)
- 一种数据处理方法,其特征在于,包括:获取根据业务数据生成的日志数据以及所述日志数据对应的日志标签;从日志通道列表中获取所述日志标签对应的日志通道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道,所述日志通道用于临时存储根据业务数据生成的日志数据;当检测到所述日志通道中存在日志数据时,根据所述日志通道列表将所述日志数据存储至所述日志通道对应的日志存储地址。
- 根据权利要求1所述的方法,其特征在于,所述从日志通道列表中获取所述日志标签对应的日志通道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道之前,还包括:获取生成日志数据的至少一个业务模块对应的日志标签,获取每个所述日志标签分别对应的日志通道名称以及每个所述日志通道名称分别对应的日志存储地址;将每个所述日志标签、每个所述日志通道名称和每个所述日志存储地址之间的关联关系存储至日志通道列表中。
- 根据权利要求1所述的方法,其特征在于,所述获取根据业务数据生成的日志数据以及所述日志数据对应的日志标签,包括:获取业务请求指令,所述业务请求指令携带业务模块信息;根据所述业务请求指令生成所述业务模块信息对应的业务数据,根据所述业务数据生成日志数据;获取所述日志数据对应的业务模块信息所属的日志标签。
- 根据权利要求1或2所述的方法,其特征在于,所述当检测到所述日志通道中存在日志数据时,将所述日志数据存储至所述日志通道对应的日志存储地址,包括:根据预设周期检测所述日志通道中是否存在日志数据;当检测到所述日志通道中存在日志数据时,从日志通道列表中获取所述日志通道所属日志通道名称对应的日志存储地址;将所述日志数据存储至所述日志存储地址。
- 根据权利要求1或2所述的方法,其特征在于,所述从日志通道列表中获取所述日志标签对应的日志通道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道之前,还包括:根据所述日志通道列表在日志通道集合中检测是否存在日志标签对应的日志通道;若存在,在日志通道集合中获取所述日志标签对应的日志通道,将所述日志数据存储至日志标签对应的日志通道;若不存在,则执行所述从日志通道列表中获取所述日志标签对应的日志通 道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道的步骤。
- 根据权利要求1或2所述的方法,其特征在于,还包括:启动目标脚本对日志通道环境进行检测;所述日志通道环境用于监控日志通道的状态;当检测到所述日志通道环境中创建新的日志通道时,则通过所述目标脚本启动所述新的日志通道对应的目标应用进程,通过所述目标进程对所述新的日志通道中的日志数据进行处理;当检测到所述日志通道环境中的日志通道处于失效状态时,通过所述目标脚本会清理所述处于失效状态的日志通道。
- 根据权利要求1或2所述的方法,其特征在于,还包括:当检测到所述日志数据中存在敏感信息时,采用特殊符号替换所述日志数据中的所述敏感信息。
- 根据权利要求1或2所述的方法,其特征在于,所述获取根据业务数据生成的日志数据以及所述日志数据对应的日志标签之后,还包括:在所述日志数据中插入与所述日志数据对应的业务数据相关的业务关键字和全局唯一的业务特征码。
- 根据权利要求8所述的方法,其特征在于,还包括:获取日志检索请求,并根据所述日志检索请求获取输入关键字和输入特征码;将所述输入关键字与所述业务关键字进行匹配,将所述输入特征码与所述业务特征码进行匹配;从日志存储地址中获取与所述输入关键字和所述输入特征码均匹配成功的日志数据。
- 一种数据处理设备,其特征在于,包括:数据获取单元,用于获取根据业务数据生成的日志数据以及所述日志数据对应的日志标签;通道创建单元,用于从日志通道列表中获取所述日志标签对应的日志通道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道,所述日志通道用于临时存储根据业务数据生成的日志数据;日志存储单元,用于当检测到所述日志通道中存在日志数据时,根据所述日志通道列表将所述日志数据存储至所述日志通道对应的日志存储地址。
- 根据权利要求10所述的设备,其特征在于,还包括:关联关系存储存储单元,用于获取生成日志数据的至少一个业务模块对应的日志标签,获取每个所述日志标签分别对应的日志通道名称以及每个所述日志通道名称分别对应的日志存储地址;将每个所述日志标签、每个所述日志通道名称和每个所述日志存储地址之间的关联关系存储至日志通道列表中。
- 根据权利要求10所述的设备,其特征在于,所述数据获取单元具体用于:获取业务请求指令,所述业务请求指令携带业务模块信息;根据所述业务请求指令生成所述业务模块信息对应的业务数据,根据所述业务数据生成日志数据;获取所述日志数据对应的业务模块信息所属的日志标签。
- 根据权利要求10或11所述的设备,其特征在于,所述日志存储单元具体用于:根据预设周期检测所述日志通道中是否存在日志数据;当检测到所述日志通道中存在日志数据时,从日志通道列表中获取所述日志通道所属日志通道名称对应的日志存储地址;将所述日志数据存储至所述日志存储地址。
- 根据权利要求10或11所述的设备,其特征在于,还包括:通道检测单元,用于根据所述日志通道列表在日志通道集合中检测是否存在日志标签对应的日志通道;若存在,在日志通道集合中获取所述日志标签对应的日志通道,将所述日志数据存储至日志标签对应的日志通道;若不存在,则执行所述从日志通道列表中获取所述日志标签对应的日志通道名称,并创建所述日志通道名称对应的日志通道,并将所述日志数据存储至所创建的日志通道的步骤。
- 根据权利要求10或11所述的设备,其特征在于,所述通道检测单元,具体还用于:启动目标脚本对日志通道环境进行检测;所述日志通道环境用于监控日志通道的状态;当检测到所述日志通道环境中创建新的日志通道时,则通过所述目标脚本启动所述新的日志通道对应的目标应用进程,通过所述目标进程对所述新的日志通道中的日志数据进行处理;当检测到所述日志通道环境中的日志通道处于失效状态时,通过所述目标脚本会清理所述处于失效状态的日志通道。
- 根据权利要求10或11所述的设备,其特征在于,还包括:信息替换单元,用于当检测到所述日志数据中存在敏感信息时,采用特殊符号替换所述日志数据中的所述敏感信息。
- 根据权利要求10或11所述的设备,其特征在于,还包括:插入单元,用于在所述日志数据中插入与所述日志数据对应的业务数据相关的业务关键字和全局唯一的业务特征码。
- 根据权利要求17所述的设备,其特征在于,还包括:检索请求单元,用于获取日志检索请求,并根据所述日志检索请求获取输入关键字和输入特征码;匹配单元,用于将所述输入关键字与所述业务关键字进行匹配,将所述输入特征码与所述业务特征码进行匹配;从日志存储地址中获取与所述输入关键字和所述输入特征码均匹配成功的日志数据。
- 一种计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1-9任意一项的方法步骤。
- 一种数据处理设备,其特征在于,其特征在于,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如权利要求1-9任意一项的方法步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910420243.3A CN110245059B (zh) | 2019-05-20 | 2019-05-20 | 一种数据处理方法、设备及存储介质 |
CN201910420243.3 | 2019-05-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020233013A1 true WO2020233013A1 (zh) | 2020-11-26 |
Family
ID=67884455
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/117925 WO2020233013A1 (zh) | 2019-05-20 | 2019-11-13 | 一种数据处理方法、设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110245059B (zh) |
WO (1) | WO2020233013A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116186785A (zh) * | 2023-04-28 | 2023-05-30 | 中国工商银行股份有限公司 | 日志脱敏方法、装置、设备、介质和程序产品 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110245059B (zh) * | 2019-05-20 | 2022-11-08 | 平安普惠企业管理有限公司 | 一种数据处理方法、设备及存储介质 |
CN111104456A (zh) * | 2019-10-12 | 2020-05-05 | 深圳壹账通智能科技有限公司 | 数据持久化存储方法、装置、计算机设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020138762A1 (en) * | 2000-12-01 | 2002-09-26 | Horne Donald R. | Management of log archival and reporting for data network security systems |
CN106899643A (zh) * | 2015-12-21 | 2017-06-27 | 阿里巴巴集团控股有限公司 | 一种用户日志存储方法及设备 |
CN107239382A (zh) * | 2017-06-23 | 2017-10-10 | 深圳市冬泉谷信息技术有限公司 | 一种容器应用的日志处理方法及系统 |
CN110245059A (zh) * | 2019-05-20 | 2019-09-17 | 平安普惠企业管理有限公司 | 一种数据处理方法、设备及存储介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012173752A (ja) * | 2011-02-17 | 2012-09-10 | Nec Corp | クラスタシステム、データ記録方法、及びプログラム |
CN104601489B (zh) * | 2015-02-02 | 2018-03-27 | 迈普通信技术股份有限公司 | 一种日志块传输方法及设备 |
CN106407094B (zh) * | 2015-07-29 | 2020-06-23 | 深圳市腾讯计算机系统有限公司 | 日志系统及日志配置方法 |
CN106559241B (zh) * | 2015-09-29 | 2019-11-08 | 阿里巴巴集团控股有限公司 | 应用日志的收集、发送方法、装置、系统及日志服务器 |
CN105490854B (zh) * | 2015-12-11 | 2019-03-12 | 传线网络科技(上海)有限公司 | 实时日志收集方法、系统和应用服务器集群 |
-
2019
- 2019-05-20 CN CN201910420243.3A patent/CN110245059B/zh active Active
- 2019-11-13 WO PCT/CN2019/117925 patent/WO2020233013A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020138762A1 (en) * | 2000-12-01 | 2002-09-26 | Horne Donald R. | Management of log archival and reporting for data network security systems |
CN106899643A (zh) * | 2015-12-21 | 2017-06-27 | 阿里巴巴集团控股有限公司 | 一种用户日志存储方法及设备 |
CN107239382A (zh) * | 2017-06-23 | 2017-10-10 | 深圳市冬泉谷信息技术有限公司 | 一种容器应用的日志处理方法及系统 |
CN110245059A (zh) * | 2019-05-20 | 2019-09-17 | 平安普惠企业管理有限公司 | 一种数据处理方法、设备及存储介质 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116186785A (zh) * | 2023-04-28 | 2023-05-30 | 中国工商银行股份有限公司 | 日志脱敏方法、装置、设备、介质和程序产品 |
Also Published As
Publication number | Publication date |
---|---|
CN110245059A (zh) | 2019-09-17 |
CN110245059B (zh) | 2022-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10356032B2 (en) | System and method for detecting confidential information emails | |
WO2020233013A1 (zh) | 一种数据处理方法、设备及存储介质 | |
US20160085794A1 (en) | Data consistency and rollback for cloud analytics | |
US20180285596A1 (en) | System and method for managing sensitive data | |
CN109522751B (zh) | 访问权限控制方法、装置、电子设备及计算机可读介质 | |
US20160162507A1 (en) | Automated data duplicate identification | |
CN108134696A (zh) | 一种微服务配置更新方法及装置 | |
US20210165785A1 (en) | Remote processing of memory and files residing on endpoint computing devices from a centralized device | |
US20150286663A1 (en) | Remote processing of memory and files residing on endpoint computing devices from a centralized device | |
CN110895472A (zh) | 一种识别业务变更的方法和装置 | |
CN111552895B (zh) | 小程序应用中页面路由的解析方法、系统、设备及介质 | |
CN104903865A (zh) | 恢复虚拟机映像的在前版本 | |
US9395966B1 (en) | Systems and methods for associating installed software components with software products | |
CN109472540B (zh) | 业务处理方法和装置 | |
US9021389B1 (en) | Systems and methods for end-user initiated data-loss-prevention content analysis | |
US10129328B2 (en) | Centralized management of webservice resources in an enterprise | |
WO2021012554A1 (zh) | 区块链中数据字段的更新方法、装置、介质、电子设备 | |
US11868412B1 (en) | Data enrichment systems and methods for abbreviated domain name classification | |
CN115544050A (zh) | 操作日志记录方法、装置、设备及存储介质 | |
CN115544558A (zh) | 敏感信息检测方法、装置、计算机设备及存储介质 | |
EP2819028A2 (en) | Content management system | |
US9632918B1 (en) | Creating expected test results using previous test results | |
CN109547290B (zh) | 云平台垃圾数据检测处理方法、装置、设备及存储介质 | |
US20240070319A1 (en) | Dynamically updating classifier priority of a classifier model in digital data discovery | |
CN109525630B (zh) | 发送数据分析委托请求的方法、装置、介质及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19929829 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19929829 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 18/03/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19929829 Country of ref document: EP Kind code of ref document: A1 |