WO2021232292A1 - Log data processing method and related product - Google Patents

Log data processing method and related product Download PDF

Info

Publication number
WO2021232292A1
WO2021232292A1 PCT/CN2020/091319 CN2020091319W WO2021232292A1 WO 2021232292 A1 WO2021232292 A1 WO 2021232292A1 CN 2020091319 W CN2020091319 W CN 2020091319W WO 2021232292 A1 WO2021232292 A1 WO 2021232292A1
Authority
WO
WIPO (PCT)
Prior art keywords
log
target
search
search engine
keyword
Prior art date
Application number
PCT/CN2020/091319
Other languages
French (fr)
Chinese (zh)
Inventor
郭子亮
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN202080099562.XA priority Critical patent/CN115380282A/en
Priority to PCT/CN2020/091319 priority patent/WO2021232292A1/en
Publication of WO2021232292A1 publication Critical patent/WO2021232292A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Definitions

  • This application relates to the computer field, and specifically relates to a log data processing method and related products.
  • the embodiments of the present application provide a log data processing method and related products, which can save memory resources.
  • a log data processing method is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the method includes:
  • the log search engine obtains target log data from the log warehouse service according to a preset time sequence
  • the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results
  • the log search engine outputs the target search result.
  • an embodiment of the present application provides a log data processing device, which is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the device includes: an acquisition unit, a search unit, and an output unit ,in,
  • the obtaining unit is configured to obtain target log data from the log warehouse service according to a preset time sequence through the log search engine;
  • the search unit is configured to perform keyword search and matching on the target log data through the log search engine through a preset log search algorithm to obtain target search results;
  • the output unit is configured to output the target search result through the log search engine.
  • an embodiment of the present application provides a server including a processor, a memory, a communication interface, and one or more programs.
  • the server includes a log service system, and the log service system includes a log search engine and a log warehouse.
  • the service is configured to be executed by the above-mentioned processor, and the above-mentioned program includes instructions for executing the steps in the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute Some or all of the steps described in one aspect.
  • the embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in this application.
  • the computer program product may be a software installation package.
  • FIG. 1A is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram of the architecture for implementing the log data processing method provided by the embodiment of the present application.
  • FIG. 1C is a schematic flowchart of a log data processing method disclosed in an embodiment of the present application.
  • FIG. 1D is a schematic diagram of a demonstration of obtaining log data disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another log data processing method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another server disclosed in an embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of a log data processing device disclosed in an embodiment of the present application.
  • the log service system involved in the embodiment of the present application is applied to a cloud platform or a cloud server.
  • FIG. 1A is a schematic structural diagram of a server disclosed in an embodiment of the present application.
  • the server 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110.
  • the storage and processing circuit 110 can be a memory, such as a hard disk drive memory, a non-volatile memory (such as flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), and a volatile memory (such as static or dynamic random access memory). Access to memory, etc.), etc., are not limited in the embodiment of the present application.
  • the processing circuit in the storage and processing circuit 110 can be used to control the operation of the server 100.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and so on.
  • the storage and processing circuit 110 can be used to run software in the server 100, such as Internet browsing applications, voice over internet protocol (VOIP) phone call applications, email applications, media playback applications, operating system functions, etc. .
  • These softwares can be used to perform some control operations, for example, camera-based image capture, ambient light measurement based on ambient light sensors, proximity sensor measurement based on proximity sensors, and information based on status indicators such as the status indicators of light-emitting diodes.
  • Display functions touch event detection based on touch sensors, functions associated with displaying information on multiple (for example, layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals ,
  • the control operations associated with the collection and processing of button press event data, as well as other functions in the server 100, etc., are not limited in the embodiment of the present application.
  • the server 100 may also include an input-output circuit 150.
  • the input-output circuit 150 can be used to enable the server 100 to implement data input and output, that is, to allow the server 100 to receive data from an external device and also allow the server 100 to output data from the server 100 to an external device.
  • the input-output circuit 150 may further include a sensor 170.
  • the sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light-based touch sensor and/or a capacitive touch sensor. The touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit 150 may also include one or more displays, such as the display 130.
  • the display 130 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, and resistance. Touch, optical touch, etc., are not limited in the embodiment of the present application.
  • the audio component 140 may be used to provide audio input and output functions for the server 100.
  • the audio component 140 in the server 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sounds.
  • the communication circuit 120 may be used to provide the server 100 with the ability to communicate with external devices.
  • the communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals.
  • the wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals.
  • the communication circuit 120 may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit 120 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so on.
  • the server 100 may further include a battery, a power management circuit, and other input-output units 160.
  • the input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators.
  • the user can control the operation of the server 100 by inputting commands through the input-output circuit 150, and can use the output data of the input-output circuit 150 to realize receiving status information and other output from the server 100.
  • FIG. 1B provides a system architecture that implements the method involved in the embodiment of this application, that is, the log service system.
  • the method and the log service system described in the embodiment of this application can be applied to the server, and the log service
  • the system may include a log warehouse service (LogHouse) and at least one log server engine (Logengine).
  • the log service system may also include a receiving end.
  • the receiving end may be at least one of the following: spark, flink, kfaka, client, etc., here Not limited.
  • Logengine as the log query search engine module component of LogHouse, provides users with high-efficiency, low-energy and rich and diverse log data search, query and analysis functions and interfaces, such as supporting SQL-like queries and streaming docking
  • the big data component analyzes log data in real time, supports keyword query matching, supports regular expression query filtering, supports real-time log tail, supports historical time period log query, supports log download, and so on.
  • the Logengine architecture and design can be a high-performance stateless and linearly scalable service component, which is completely transparent to users, only exposes grpc and http interfaces for users to use, and realizes docking with multiple big data services such as spark, flink, kfaka Streaming log data for real-time analysis, statistics, search and filtering.
  • the log search engine obtains target log data from the log warehouse service according to a preset time sequence
  • the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results
  • the log search engine outputs the target search result.
  • the log service system includes a log search engine and a log warehouse service.
  • the log search engine obtains target log data from the log warehouse service according to a preset timing.
  • the log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results.
  • the log search engine outputs the target search results.
  • the log search engine does not store any original log data, but from the log warehouse
  • the service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
  • FIG. 1C is a schematic flowchart of a log data processing method provided by an embodiment of the present application.
  • the log data processing method described in this embodiment is applied to the server shown in FIG. 1A or the system shown in FIG. 1B Architecture, the server may include a log service system, the log service system includes a log search engine and a log warehouse service, and the log data processing method includes:
  • the log search engine obtains target log data from the log warehouse service according to a preset time sequence.
  • the preset time sequence can be set by the user or the system defaults.
  • the preset time sequence is a preset time interval, or the preset time sequence can be implemented by a pulse function.
  • the log warehouse service can be used to save log data, while the log search engine may not need to save the log data. Furthermore, the log search engine can obtain target log data from the log warehouse service according to a preset timing.
  • the storage mode of the log warehouse service for the target log data is KV storage.
  • the storage method of the log warehouse service for the target log data is KV storage.
  • KV storage can realize distributed storage and save memory resources to a certain extent.
  • the log search engine is only used to implement the log stream analysis function, and is not used to store data.
  • the log search engine may only be used to implement the log analysis function, and is not used to store data. In this way, the data storage function and the analysis function can be separated, and the log analysis efficiency can be fully improved.
  • the key value stored by the KV is generated from the time dimension and log sequence
  • the V of the KV stores original log data
  • the target log data is part of the log data of the original log data.
  • the key value (key) stored by KV is generated by the time dimension and log sequence.
  • the key value can be generated naturally and orderly, and the V of KV stores the original log data, which is convenient for subsequent time dimension cutting to obtain Data stream, the target log data is part of the log data of the original log data.
  • step 101 the log search engine obtains target log data from the log warehouse according to a preset time sequence, which may include the following steps:
  • the log search engine cuts the original log data according to the time dimension to obtain cut log data
  • the log search engine can cut the original log data according to the time dimension to obtain the cut log data, and further, can process the cut log data into streaming log data to obtain the target log data.
  • T1-T5 can be divided into multiple time periods, each The time period corresponds to a log data stream, and each log data stream can correspond to a search thread.
  • the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results.
  • the preset log search algorithm can be set by the user or the system defaults.
  • the preset log search algorithm can be at least one of the following: kmp algorithm, naive algorithm, neural network algorithm, etc., which are not limited here.
  • the neural network algorithm can be It is at least one of the following: a fully connected neural network model, a convolutional neural network model, a spiking neural network model, a cyclic neural network model, etc., which are not limited here.
  • the log search engine can perform keyword search and matching on target log data through a preset log search algorithm to obtain target search results, which can improve search efficiency to a certain extent.
  • step 102 the log search engine performs keyword search and matching on the target log data through a preset log search algorithm to obtain target search results, which may include the following steps:
  • the log search engine performs keyword extraction on the target log data to obtain the first keyword
  • the log search engine may extract keywords from the target log data to obtain the first keyword.
  • the keywords may be at least one of the following: pictures, characters, and so on.
  • the log warehouse service can store library data in advance, and then, the log search engine can obtain the pre-stored library data, extract keywords from the library data, and obtain multiple second keywords.
  • the first key can be obtained through the preset log search algorithm
  • the word is matched with each second keyword in the plurality of second keywords to obtain a plurality of matching values.
  • Each second keyword in the plurality of second keywords corresponds to a matching value.
  • it is possible to obtain multiple matching values from The maximum value is selected from the matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
  • the first keyword is matched with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain Multiple matching values can include the following steps:
  • both the first attribute information and the second attribute information may include at least one of the following: information type, keyword length, keyword location, etc., which are not limited herein.
  • the information type can be at least one of the following: pictures, punctuation marks, log types, etc., which are not limited here.
  • the log search engine can determine the first attribute information of the first keyword, and at the same time, can also determine the second attribute information of each of the multiple second keywords to obtain multiple second attribute information.
  • the above preset requirements can be set by the user or the system defaults. For example, the preset requirement is that the matching value is in a certain range.
  • the first attribute information can be matched with multiple second attribute information to obtain multiple attribute matches. Value, each second attribute information corresponds to an attribute matching value, which is equivalent to an initial matching process.
  • attribute matching values that meet the preset requirements can be filtered from multiple attribute matching values to obtain multiple target attribute matching values , Obtain keywords corresponding to multiple target attribute matching values, obtain multiple target second keywords, and match each of the first keyword with multiple target second keywords through a preset log search algorithm, Obtain multiple matching values. In this way, the log search and matching efficiency can be improved.
  • the log search engine outputs the target search result.
  • the log search engine can output the target search results to the receiving end, and the receiving end can receive the target search results.
  • the log search engine outputs the target search result, which can be implemented in the following manner:
  • the log search engine outputs the target search results in a streaming manner.
  • the log search engine can output the target search results in a streaming manner, so that an orderly and efficient output of the search results can be achieved.
  • the log search engine outputs the target search results in a streaming manner, which may include the following steps:
  • the log search engine obtains target attribute information of the receiving end
  • the attribute information may be at least one of the following: device identification, login information of the receiving end, etc., which are not limited here, and the device identification information may be at least one of the following: IP address, device model, MAC Address, ICCID, IMEI, etc. are not limited here.
  • the login information of the receiving end can be at least one of the following: login account, login geographic location, login method, etc., which are not limited here.
  • the processing parameters can be at least one of the following: display parameters (resolution, color, font size, language type, etc.), display effects (animation, text, voice, etc.), etc., which are not limited here.
  • the log warehouse service can pre-store the mapping relationship between preset attribute information and processing parameters, and the log search engine can obtain the target attribute information of the receiving end, and further, it can be based on the preset attribute information and processing parameters.
  • the log search engine can obtain the target attribute information of the receiving end, and further, it can be based on the preset attribute information and processing parameters.
  • To determine the target processing parameters corresponding to the target attribute information and process the target search results according to the target processing parameters to obtain the processed search results, and output the processed search results in a streaming manner. On the one hand, it can display the corresponding corresponding to different users. Search results, on the other hand, outputting search results in a data stream can improve search efficiency.
  • the embodiment of this application can solve the problem that the search engine ES in the ELK log service solution commonly adopted in related technologies requires user intervention to establish a log index, consumes a large amount of memory resources, and once the server goes down, data recovery is extremely slow and inefficient, and the original data It is a problem that IO performance needs to be placed multiple times and cannot be linearly expanded.
  • Logengine is used as a search engine, which, while also having high performance, effectively solves the above shortcomings and greatly saves valuable server resources. In turn, it can provide a full range of log integration services for the massive log data generated.
  • Logengine can be used as the log query search engine module component of the cloud platform log service loghouse, providing users with high-efficiency, low-energy and rich and diverse log data search query analysis functions and interfaces, such as support for SQL queries, support Streaming and docking big data components to analyze log data in real time, support keyword query matching, support regular expression query filtering, support real-time log tail, support log query of historical time period, support log download, etc.
  • Logengine architecture and design are high-performance, stateless and linearly scalable service components, which are completely transparent to users. Only grpc and http interfaces are exposed for users to use. At the same time, it can connect to a variety of big data services such as spark, flink, kfaka, etc.
  • the log data is transmitted in a format for real-time analysis, statistics, search and filtering.
  • the internal implementation is mainly divided into the following processes:
  • Logengine obtains log data from the loghouse system in a strict and orderly manner according to the time range.
  • Loghouse is designed as kv storage.
  • K is carefully designed to be generated in accordance with the time dimension and log sequence.
  • V stores the original log data, which is dependent on the bottom layer.
  • Rocksdb the io performance of finding, locating and reading and writing log data is very good, and can reach the rate of TB/s.
  • the limit rate is the upper limit of the network card traffic;
  • Logengine only acts as the analysis and calculation module of the log stream, and does not store relevant data. Once the log data is analyzed and calculated, the results will be sent to the relevant peer immediately. Therefore, Logengine is a completely stateless service that can be expanded linearly and dynamically. , And can be migrated to any platform in a cloud native way;
  • Logengine's search performance is as high as GB/s, and it does not require huge memory and cpu resource support, which is impossible for other log search engines;
  • Logengine In terms of the function of Logengine, it provides a rich and diverse query interface for log demanders, allowing users to use the log system as simple and efficient as looking up log data locally. At the same time, logengine also implements the function of aggregated search, including cross- Features such as clusters, cross-machine rooms, and multiple activities in different places, and supports real-time intelligent monitoring of log data and alarms, and timely notification of abnormalities in the demand-side log to help users quickly locate problems;
  • the Logengine service provides related access methods for big data components, which can directly connect to spark, flink, kfaka, etc., and provide log stream pipeline transmission for applications that need to analyze and merge massive log data.
  • log search engine in the above embodiment of the present application can have the following functions:
  • Logengine does not store any original log data, and searches and analyzes the log stream in real time, which saves a lot of memory resources;
  • Logengine Since there is no need to store any data, Logengine is completely cloud native, which can be dynamically transplanted and linearly expanded;
  • Logengine does not need to restore the state machine, and all runs in the container self-check mode. As long as not all nodes are down, it will not affect the user's query analysis experience, and once a node is down, the service container will pass the self-check Immediately re-launched and put into service in situ, so the availability and reliability of this application is as high as 6 9s.
  • step 101 the following steps may also be included:
  • the target emotion type is a preset emotion type
  • the physiological state parameters may be various parameters used to reflect the physiological functions of the user, and the physiological state parameters may be at least one of the following: heart rate, blood pressure, blood temperature, blood lipid content, blood glucose content, and thyroxine content , Adrenaline content, platelet content, blood oxygen content, etc., are not limited here.
  • the preset emotion type can be set by the user or the system defaults. The preset emotion type can be at least one of the following: dull, crying, calm, irritable, excited, depressed, etc., which are not limited here.
  • the electronic device can obtain the user's target physiological state parameters through a wearable device that can communicate with the electronic device.
  • Different physiological state parameters reflect the user's emotional type.
  • the electronic device can pre-store the physiological state parameters and emotions.
  • the mapping relationship between the types, and further, the target emotion type corresponding to the target physiological state parameter can be determined according to the mapping relationship, and further, when the target emotion type is the preset emotion type, step 101 may be executed, otherwise, step 101 may not be executed 101.
  • the above step A1 determining the target emotion type corresponding to the target physiological state parameter, can be implemented in the following manner:
  • A12. Perform an average calculation based on the multiple heart rate values to obtain an average heart rate value
  • A14 Determine the target first emotion value corresponding to the target heart rate level according to the preset mapping relationship between the heart rate level and the first emotion value;
  • A15 Perform the mean square error calculation according to the multiple heart rate values to obtain the target mean square error
  • A16 Determine the target second emotion value corresponding to the target mean square error according to the preset mapping relationship between the mean square error and the second emotion value;
  • A17 Determine the target weight pair corresponding to the target heart rate level according to the preset mapping relationship between the heart rate level and the weight value pair, and the weight value pair includes a first weight value and a second weight value.
  • a weight value is a weight value corresponding to the first emotion value
  • the second weight value is a weight value corresponding to the second emotion value;
  • A18 Perform a weighted operation according to the target first emotion value, the target second emotion value, and the target weight pair to obtain a final emotion value;
  • A19 Determine the target emotion type corresponding to the target emotion value according to the preset mapping relationship between the emotion value and the emotion type.
  • the specified time period can be set by the user or the system defaults.
  • the electronic device can pre-store the mapping relationship between the preset heart rate level and the first emotion value, and the preset mean square error and the second emotion value.
  • the mapping relationship, and the mapping relationship between the preset heart rate level and the weight value pair, and the mapping relationship between the preset emotion value and the emotion type, the above weight value pair may include a first weight value and a second weight value,
  • the first weight value is the weight value corresponding to the first sentiment value
  • the second weight value is the weight value corresponding to the second sentiment value.
  • the sum of the first weight value and the second weight value can be 1, and the first weight value ,
  • the value range of the second weight is 0 ⁇ 1.
  • the emotion can be evaluated by the heart rate change curve.
  • the electronic device can sample the heart rate curve.
  • the specific sampling method can be: uniform sampling or random sampling to obtain multiple heart rate values, and the average heart rate can be calculated based on the multiple heart rate values to obtain the average heart rate value.
  • the mapping relationship between the heart rate value and the heart rate level can be pre-stored in the, and then the target heart rate level corresponding to the average heart rate value can be determined according to the mapping relationship, and further, can be based on the preset heart rate level and the first emotional value.
  • the mapping relationship is used to determine the target first emotion value corresponding to the target heart rate level.
  • the mean square error operation can be performed on multiple heart rate values to obtain the target mean square error, and the target mean square error can be calculated according to the preset mean square error and the second emotion value.
  • the mapping relationship determines the target second sentiment value corresponding to the target mean square error.
  • the electronic device may also determine a target weight pair corresponding to the target heart rate level according to the above-mentioned preset mapping relationship between the heart rate level and the weight value pair, and the target weight value pair may include the target first weight value and the target first weight value.
  • a weight value, the target first weight value is the weight value corresponding to the target first emotion value
  • the target second weight value is the weight value corresponding to the target second emotion value.
  • the electronic device can be based on the target first emotion value and the target first emotion value.
  • the second emotional value, the first weight of the target and the second weight of the target are weighted to obtain the final emotional value.
  • the specific calculation formula is as follows:
  • the target emotion type corresponding to the target emotion value can be determined according to the foregoing preset mapping relationship between the emotion value and the emotion type.
  • the above average heart rate reflects the user's heart rate value
  • the mean square error of the heart rate reflects the stability of the heart rate
  • the user's emotion is reflected through the two dimensions of the average heart rate and the mean square error, and the user's emotion type can be accurately determined.
  • the log service system includes a log search engine and a log warehouse service.
  • the log search engine obtains target log data from the log warehouse service according to a preset timing.
  • the log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results.
  • the log search engine outputs the target search results.
  • the log search engine does not store any original log data, but from the log warehouse
  • the service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
  • FIG. 2 is a schematic flowchart of another log data processing method provided by an embodiment of the present application.
  • the log data processing method described in this embodiment is applied to the server as shown in FIG. 1A or
  • the server may include a log service system, and the log service system includes a log search engine and a log warehouse service.
  • the method may include the following steps:
  • the log search engine obtains target log data from the log warehouse service according to a preset time sequence, + the log warehouse service stores the target log data in KV storage, and the key value of the KV storage is determined by time The dimensions and log sequence are generated, the V of the KV stores original log data, and the target log data is part of the log data of the original log data.
  • the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results.
  • the log search engine outputs the processed search result in a streaming manner.
  • the log service system includes a log search engine and a log warehouse service.
  • the log search engine does not store any original log data, but serves from the log warehouse.
  • log data is transmitted and calculated in the form of log streams in the entire ecological chain, so that there is no need for additional large amounts of memory to the greatest extent. Under the consumption of resources, the performance of log search is greatly improved.
  • FIG. 3 is a server provided by an embodiment of the present application, including: a processor and a memory; and one or more programs, the server includes a log service system, and the log service system includes Log search engine and log warehouse service, the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
  • the log search engine obtains target log data from the log warehouse service according to a preset time sequence
  • the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results
  • the log search engine outputs the target search result.
  • the server described in the embodiment of the present application includes a log service system.
  • the log service system includes a log search engine and a log warehouse service.
  • the log search engine obtains target log data from the log warehouse service according to a preset timing, and the log search The engine performs keyword search and matching on the target log data through the preset log search algorithm to obtain the target search results, and the log search engine outputs the target search results.
  • the log search engine does not store any original log data, but obtains it from the log warehouse service Log data, and real-time search and analysis of logs can save memory resources.
  • the program includes instructions for executing the following steps:
  • the log search engine cuts the original log data according to the time dimension to obtain cut log data
  • the cutting log data is processed into streaming log data to obtain the target log data.
  • the program includes instructions for executing the following steps:
  • the log search engine outputs the target search results in a streaming manner.
  • the program includes instructions for executing the following steps:
  • the log search engine obtains the target attribute information of the receiving end
  • the processing search results are output in a streaming manner.
  • the log search engine is only used to implement the log stream analysis function, and is not used to store data.
  • the program includes instructions for executing the following steps:
  • the log search engine performs keyword extraction on the target log data to obtain the first keyword
  • the maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
  • the program includes instructions for performing the following steps:
  • the first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
  • the storage mode of the log warehouse service for the target log data is KV storage.
  • the key value stored by the KV is generated from the time dimension and log sequence
  • the V of the KV stores original log data
  • the target log data is part of the log data of the original log data.
  • FIG. 4 is a schematic structural diagram of a log data processing apparatus provided by this embodiment.
  • the log data processing device is applied to a log service system.
  • the log service system includes a log search engine and a log warehouse service.
  • the log service system is applied to the server shown in FIG. 1A or the system architecture shown in FIG. 1B.
  • the data processing device includes: an acquisition unit 401, a search unit 402, and an output unit 403, where:
  • the obtaining unit 401 is configured to obtain target log data from the log warehouse service according to a preset time sequence through the log search engine;
  • the searching unit 402 is configured to perform keyword search and matching on the target log data through the log search engine through a preset log search algorithm to obtain target search results;
  • the output unit 403 is configured to output the target search result through the log search engine.
  • the log data processing device described in the embodiment of the present application is applied to a log service system.
  • the log service system includes a log search engine and a log warehouse service.
  • the log search engine obtains target log data from the log warehouse service according to a preset timing.
  • the log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results.
  • the log search engine outputs the target search results.
  • the log search engine does not store any original log data, but from the log warehouse
  • the service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
  • the obtaining unit 401 is specifically configured to:
  • the cutting log data is processed into streaming log data to obtain the target log data.
  • the output unit 403 is specifically configured to:
  • the target search result is output in a streaming manner through the log search engine.
  • the output unit 401 is specifically configured to:
  • the processing search results are output in a streaming manner.
  • the log search engine is only used to implement the log stream analysis function, and is not used to store data.
  • the search unit 402 is specifically configured to:
  • the maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
  • the searching unit 402 is specifically configured to:
  • the first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
  • the storage mode of the log warehouse service for the target log data is KV storage.
  • the key value stored by the KV is generated from the time dimension and log sequence
  • the V of the KV stores original log data
  • the target log data is part of the log data of the original log data.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute any log data processing method recorded in the above method embodiment. Part or all of the steps.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the computer program is operable to cause a computer to execute the method described in the foregoing method embodiment. Part or all of the steps of any log data processing method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed 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 may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software program modules.
  • the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory.
  • a number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
  • the foregoing memory includes: U disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, magnetic disk or CD, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A log data processing method and a related product, which are applied to a log service system. The log service system comprises a log search engine and a log warehouse service. The method comprises: a log search engine acquiring target log data from a log warehouse service according to a preset time sequence (101); the log search engine performing keyword search and matching on the target log data by means of a preset log search algorithm, so as to obtain a target search result (102); and the log search engine outputting the target search result (103). By using the method, memory resources can be saved on.

Description

日志数据处理方法及相关产品Log data processing method and related products 技术领域Technical field
本申请涉及计算机领域,具体涉及一种日志数据处理方法及相关产品。This application relates to the computer field, and specifically relates to a log data processing method and related products.
背景技术Background technique
目前互联网主流厂商针对海量日志数据的收集、存储、传输、搜索查询和实时分析,一般都采用业界常用的ELK方案。该方案的实现流程为采用filebeat做日志采集端,将业务产生的日志数据收集起来,通过kafka传输送往logstash,logstash按照用户事先定制的查询字段需求,对日志数据进行定制和修剪,然后写入搜索引擎ES,ES负责日志的存储和搜索查询,并通过kibana组件将用户所需的日志数据图形化展示,但是针对搜索引擎ES服务,其不仅需要实现日志的存储,还需要通过建立多样化的索引,因此,需要消耗大量内存资源。At present, mainstream Internet vendors generally adopt ELK solutions commonly used in the industry for the collection, storage, transmission, search query, and real-time analysis of massive log data. The implementation process of this solution is to use filebeat as the log collection terminal, collect the log data generated by the business, and transmit it to logstash through kafka. Logstash customizes and trims the log data according to the user's pre-customized query field requirements, and then writes it The search engine ES, ES is responsible for log storage and search queries, and graphically displays the log data required by users through the kibana component. However, for the search engine ES service, it not only needs to achieve log storage, but also needs to establish a diversified Indexes, therefore, need to consume a lot of memory resources.
发明内容Summary of the invention
本申请实施例提供了一种日志数据处理方法及相关产品,能够节省内存资源。The embodiments of the present application provide a log data processing method and related products, which can save memory resources.
第一方面,本申请实施例一种日志数据处理方法,应用于日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述方法包括:In a first aspect, a log data processing method according to an embodiment of the present application is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the method includes:
所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The log search engine obtains target log data from the log warehouse service according to a preset time sequence;
所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results;
所述日志搜索引擎输出所述目标搜索结果。The log search engine outputs the target search result.
第二方面,本申请实施例提供了一种日志数据处理装置,应用于日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述装置包括:获取单元、搜索单元和输出单元,其中,In a second aspect, an embodiment of the present application provides a log data processing device, which is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the device includes: an acquisition unit, a search unit, and an output unit ,in,
所述获取单元,用于通过所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The obtaining unit is configured to obtain target log data from the log warehouse service according to a preset time sequence through the log search engine;
所述搜索单元,用于通过所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The search unit is configured to perform keyword search and matching on the target log data through the log search engine through a preset log search algorithm to obtain target search results;
所述输出单元,用于通过所述日志搜索引擎输出所述目标搜索结果。The output unit is configured to output the target search result through the log search engine.
第三方面,本申请实施例提供一种服务器,该服务器包括处理器、存储器、通信接口,以及一个或多个程序,该服务器包括日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面中的步骤的指令。In a third aspect, an embodiment of the present application provides a server including a processor, a memory, a communication interface, and one or more programs. The server includes a log service system, and the log service system includes a log search engine and a log warehouse. The service is configured to be executed by the above-mentioned processor, and the above-mentioned program includes instructions for executing the steps in the first aspect of the embodiments of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute Some or all of the steps described in one aspect.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, the embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in this application. Example part or all of the steps described in the first aspect. The computer program product may be a software installation package.
附图说明Description of the drawings
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。The following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1A是本申请实施例提供的一种服务器的结构示意图;FIG. 1A is a schematic structural diagram of a server provided by an embodiment of the present application;
图1B本申请实施例提供的实施日志数据处理方法的架构示意图;FIG. 1B is a schematic diagram of the architecture for implementing the log data processing method provided by the embodiment of the present application;
图1C是本申请实施例公开的一种日志数据处理方法的流程示意图;FIG. 1C is a schematic flowchart of a log data processing method disclosed in an embodiment of the present application;
图1D是本申请实施例公开的一种获取日志数据的演示示意图;FIG. 1D is a schematic diagram of a demonstration of obtaining log data disclosed in an embodiment of the present application;
图2是本申请实施例公开的另一种日志数据处理方法的流程示意图;2 is a schematic flowchart of another log data processing method disclosed in an embodiment of the present application;
图3是本申请实施例公开的另一种服务器的结构示意图;Figure 3 is a schematic structural diagram of another server disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种日志数据处理装置的结构示意图。Fig. 4 is a schematic structural diagram of a log data processing device disclosed in an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。The reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的日志服务系统应用于云平台或者云服务器。The log service system involved in the embodiment of the present application is applied to a cloud platform or a cloud server.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the application in detail.
请参阅图1A,图1A是本申请实施例公开的一种服务器的结构示意图,服务器100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制服务器100的运转。该处理电路可以基于一个或多个微处理器,微控制器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Please refer to FIG. 1A. FIG. 1A is a schematic structural diagram of a server disclosed in an embodiment of the present application. The server 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110. The storage and processing circuit 110 can be a memory, such as a hard disk drive memory, a non-volatile memory (such as flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), and a volatile memory (such as static or dynamic random access memory). Access to memory, etc.), etc., are not limited in the embodiment of the present application. The processing circuit in the storage and processing circuit 110 can be used to control the operation of the server 100. The processing circuit can be implemented based on one or more microprocessors, microcontrollers, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and so on.
存储和处理电路110可用于运行服务器100中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及服务器100中的其它功能等,本申请实施例不作限制。The storage and processing circuit 110 can be used to run software in the server 100, such as Internet browsing applications, voice over internet protocol (VOIP) phone call applications, email applications, media playback applications, operating system functions, etc. . These softwares can be used to perform some control operations, for example, camera-based image capture, ambient light measurement based on ambient light sensors, proximity sensor measurement based on proximity sensors, and information based on status indicators such as the status indicators of light-emitting diodes. Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (for example, layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals , The control operations associated with the collection and processing of button press event data, as well as other functions in the server 100, etc., are not limited in the embodiment of the present application.
服务器100还可以包括输入-输出电路150。输入-输出电路150可用于使服务器100实 现数据的输入和输出,即允许服务器100从外部设备接收数据和也允许服务器100将数据从服务器100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。The server 100 may also include an input-output circuit 150. The input-output circuit 150 can be used to enable the server 100 to implement data input and output, that is, to allow the server 100 to receive data from an external device and also allow the server 100 to output data from the server 100 to an external device. The input-output circuit 150 may further include a sensor 170. The sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light-based touch sensor and/or a capacitive touch sensor. The touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
输入-输出电路150还可以包括一个或多个显示器,例如显示器130。显示器130可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器130可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。The input-output circuit 150 may also include one or more displays, such as the display 130. The display 130 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. The display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen). The touch sensor can be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, and resistance. Touch, optical touch, etc., are not limited in the embodiment of the present application.
音频组件140可以用于为服务器100提供音频输入和输出功能。服务器100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。The audio component 140 may be used to provide audio input and output functions for the server 100. The audio component 140 in the server 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sounds.
通信电路120可以用于为服务器100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The communication circuit 120 may be used to provide the server 100 with the ability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna. For example, the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communication circuit 120 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so on.
服务器100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The server 100 may further include a battery, a power management circuit, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, and other status indicators.
用户可以通过输入-输出电路150输入命令来控制服务器100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自服务器100的状态信息和其它输出。The user can control the operation of the server 100 by inputting commands through the input-output circuit 150, and can use the output data of the input-output circuit 150 to realize receiving status information and other output from the server 100.
进一步地,请参阅图1B,图1B提供了实施本申请实施例所涉及的方法的系统架构,即日志服务系统,本申请实施例所所及的方法以及日志服务系统可以应用于服务器,日志服务系统可以包括日志仓库服务(LogHouse)以及至少一个日志服务器引擎(Logengine),日志服务系统还可以包括接收端,接收端可以为以下至少一种:spark、flink、kfaka和客户端等等,在此不做限定。Further, please refer to FIG. 1B. FIG. 1B provides a system architecture that implements the method involved in the embodiment of this application, that is, the log service system. The method and the log service system described in the embodiment of this application can be applied to the server, and the log service The system may include a log warehouse service (LogHouse) and at least one log server engine (Logengine). The log service system may also include a receiving end. The receiving end may be at least one of the following: spark, flink, kfaka, client, etc., here Not limited.
本申请实施例中,Logengine作为日志仓库服务(LogHouse)的日志查询搜索引擎模块组件,为用户提供高效低能且丰富多样的日志数据搜索查询分析功能和接口,如支持类sql查询,支持流式对接大数据组件实时分析日志数据,支持关键字查询匹配,支持正则表达式查询过滤,支持实时日志tail,支持历史时间段的日志查询,支持日志下载等等。In the embodiments of this application, Logengine, as the log query search engine module component of LogHouse, provides users with high-efficiency, low-energy and rich and diverse log data search, query and analysis functions and interfaces, such as supporting SQL-like queries and streaming docking The big data component analyzes log data in real time, supports keyword query matching, supports regular expression query filtering, supports real-time log tail, supports historical time period log query, supports log download, and so on.
具体实现中,Logengine架构和设计可以为高性能无状态可线性扩展的服务组件,对用户完全透明,只暴露grpc和http接口给用户使用,同时实现对接多种大数据服务如spark、flink、kfaka等流式传输日志数据供其实时分析统计和搜索过滤。In specific implementation, the Logengine architecture and design can be a high-performance stateless and linearly scalable service component, which is completely transparent to users, only exposes grpc and http interfaces for users to use, and realizes docking with multiple big data services such as spark, flink, kfaka Streaming log data for real-time analysis, statistics, search and filtering.
基于上述日志服务系统可以执行如下操作:Based on the above log service system, the following operations can be performed:
所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The log search engine obtains target log data from the log warehouse service according to a preset time sequence;
所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results;
所述日志搜索引擎输出所述目标搜索结果。The log search engine outputs the target search result.
可以看出,本申请实施例所描述的日志数据处理方法,应用于日志服务系统,日志服务系统包括日志搜索引擎和日志仓库服务,日志搜索引擎按照预设时序从日志仓库服务获取目标日志数据,日志搜索引擎通过预设日志搜索算法对目标日志数据进行关键字搜索和匹配,得到目标搜索结果,日志搜索引擎输出目标搜索结果,如此,日志搜索引擎不存储任何原始日志数据,而是从日志仓库服务获取日志数据,且对日志进行实时搜索和分析,能够节省内存资源。It can be seen that the log data processing method described in the embodiment of this application is applied to a log service system. The log service system includes a log search engine and a log warehouse service. The log search engine obtains target log data from the log warehouse service according to a preset timing. The log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results. The log search engine outputs the target search results. In this way, the log search engine does not store any original log data, but from the log warehouse The service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
请参阅图1C,图1C是本申请实施例提供的一种日志数据处理方法的流程示意图,本实施例中所描述的日志数据处理方法,应用于如图1A的服务器或者图1B所示的系统架构,该服务器可以包括日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,该日志数据处理方法包括:Please refer to FIG. 1C. FIG. 1C is a schematic flowchart of a log data processing method provided by an embodiment of the present application. The log data processing method described in this embodiment is applied to the server shown in FIG. 1A or the system shown in FIG. 1B Architecture, the server may include a log service system, the log service system includes a log search engine and a log warehouse service, and the log data processing method includes:
101、所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据。101. The log search engine obtains target log data from the log warehouse service according to a preset time sequence.
其中,预设时序可以由用户自行设置或者系统默认,例如,预设时序为预设时间间隔,或者预设时序可以由一个脉冲函数实现。The preset time sequence can be set by the user or the system defaults. For example, the preset time sequence is a preset time interval, or the preset time sequence can be implemented by a pulse function.
具体实现中,日志仓库服务可以用于保存日志数据,而日志搜索引擎可以不用保存日志数据,进而,日志搜索引擎可以按照预设时序从日志仓库服务获取目标日志数据。In specific implementation, the log warehouse service can be used to save log data, while the log search engine may not need to save the log data. Furthermore, the log search engine can obtain target log data from the log warehouse service according to a preset timing.
在一个可能的示例中,所述日志仓库服务针对所述目标日志数据的存储方式为KV存储。In a possible example, the storage mode of the log warehouse service for the target log data is KV storage.
其中,日志仓库服务针对目标日志数据的存储方式为KV存储,KV存储能够实现分布式存储,在一定程度上节省内存资源。Among them, the storage method of the log warehouse service for the target log data is KV storage. KV storage can realize distributed storage and save memory resources to a certain extent.
在一个可能的示例中,所述日志搜索引擎仅用于实现日志流的分析功能,且并不用于存储数据。In a possible example, the log search engine is only used to implement the log stream analysis function, and is not used to store data.
其中,本申请实施例,日志搜索引擎可以仅用于实现日志的分析功能,且并不用于存储数据,如此,可以实现将存储数据功能与分析功能分开,能够充分提升日志分析效率。Among them, in the embodiment of the present application, the log search engine may only be used to implement the log analysis function, and is not used to store data. In this way, the data storage function and the analysis function can be separated, and the log analysis efficiency can be fully improved.
在一个可能的示例中,所述KV存储的键值由时间维度和日志顺序生成,所述KV的V存储的是原始日志数据,所述目标日志数据为所述原始日志数据的部分日志数据。In a possible example, the key value stored by the KV is generated from the time dimension and log sequence, the V of the KV stores original log data, and the target log data is part of the log data of the original log data.
具体实现中,KV存储的键值(key)由时间维度和日志顺序生成,如此,可以自然有序生成键值,并且KV的V存储的是原始日志数据,便于后续实现时间维度切割,以得到数据流,该目标日志数据为原始日志数据的部分日志数据。In specific implementation, the key value (key) stored by KV is generated by the time dimension and log sequence. In this way, the key value can be generated naturally and orderly, and the V of KV stores the original log data, which is convenient for subsequent time dimension cutting to obtain Data stream, the target log data is part of the log data of the original log data.
在一个可能的示例中,上述步骤101,所述日志搜索引擎按照预设时序从所述日志仓库获取目标日志数据,可以包括如下步骤:In a possible example, in step 101, the log search engine obtains target log data from the log warehouse according to a preset time sequence, which may include the following steps:
11、所述日志搜索引擎按照时间维度切割所述原始日志数据,得到切割日志数据;11. The log search engine cuts the original log data according to the time dimension to obtain cut log data;
12、将所述切割日志数据处理为流式日志数据,得到所述目标日志数据。12. Process the cutting log data into streaming log data to obtain the target log data.
其中,具体实现中,日志搜索引擎可以按照时间维度切割原始日志数据,得到切割日志数据,进而,可以将切割日志数据处理为流式日志数据,得到目标日志数据。举例说明下,如图1D所示,假设用户需要搜索开始时间为T1,结束时间为T5的时间范围内包含hello关键字的日志数据,则可以将T1-T5切割为多个时间段,每一时间段对应一个日志数据流,每一日志数据流可以对应一个搜索线程。Among them, in specific implementation, the log search engine can cut the original log data according to the time dimension to obtain the cut log data, and further, can process the cut log data into streaming log data to obtain the target log data. For example, as shown in Figure 1D, suppose the user needs to search for log data containing the hello keyword in the time range with the start time of T1 and the end time of T5, then T1-T5 can be divided into multiple time periods, each The time period corresponds to a log data stream, and each log data stream can correspond to a search thread.
102、所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果。102. The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results.
其中,预设日志搜索算法可以由用户自行设置或者系统默认,预设日志搜索算法可以为以下至少一种:kmp算法、朴素算法、神经网络算法等等,在此不做限定,神经网络算法可以为以下至少一种:全连接神经网络模型、卷积神经网络模型、脉冲神经网络模型、循环神经网络模型等等,在此不做限定。Among them, the preset log search algorithm can be set by the user or the system defaults. The preset log search algorithm can be at least one of the following: kmp algorithm, naive algorithm, neural network algorithm, etc., which are not limited here. The neural network algorithm can be It is at least one of the following: a fully connected neural network model, a convolutional neural network model, a spiking neural network model, a cyclic neural network model, etc., which are not limited here.
具体实现中,日志搜索引擎可以通过预设日志搜索算法对目标日志数据进行关键字搜索和匹配,得到目标搜索结果,在一定程度上,能够提升搜索效率。In specific implementation, the log search engine can perform keyword search and matching on target log data through a preset log search algorithm to obtain target search results, which can improve search efficiency to a certain extent.
在一个可能的示例中,上述步骤102,所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果,可以包括如下步骤:In a possible example, in step 102, the log search engine performs keyword search and matching on the target log data through a preset log search algorithm to obtain target search results, which may include the following steps:
21、所述日志搜索引擎对所述目标日志数据进行关键字提取,得到第一关键字;21. The log search engine performs keyword extraction on the target log data to obtain the first keyword;
22、获取预先存储的库数据;22. Obtain pre-stored library data;
23、对所述库数据进行关键字提取,得到多个第二关键字;23. Perform keyword extraction on the database data to obtain multiple second keywords;
24、通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,所述多个第二关键字中每一第二关键字对应一个匹配值;24. Use the preset log search algorithm to match the first keyword with each second keyword of the plurality of second keywords to obtain a plurality of matching values, and the plurality of second keywords Each second keyword in the word corresponds to a match value;
25、从所述多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为所述目标搜索结果。25. Select the maximum value from the multiple matching values, and use the content corresponding to the second keyword corresponding to the maximum value as the target search result.
其中,具体实现中,日志搜索引擎可以对目标日志数据进行关键字提取,得到第一关键字,关键字可以为以下至少一种:图片、字符等等。日志仓库服务中可以预先存储库数据,进而,日志搜索引擎可以获取预先存储的库数据,对库数据进行关键字提取,得到多个第二关键字,通过预设日志搜索算法可以将第一关键字和多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,该多个第二关键字中每一第二关键字对应一个匹配值,进而,可以从多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为目标搜索结果。Among them, in a specific implementation, the log search engine may extract keywords from the target log data to obtain the first keyword. The keywords may be at least one of the following: pictures, characters, and so on. The log warehouse service can store library data in advance, and then, the log search engine can obtain the pre-stored library data, extract keywords from the library data, and obtain multiple second keywords. The first key can be obtained through the preset log search algorithm The word is matched with each second keyword in the plurality of second keywords to obtain a plurality of matching values. Each second keyword in the plurality of second keywords corresponds to a matching value. Furthermore, it is possible to obtain multiple matching values from The maximum value is selected from the matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
进一步地,在一个可能的示例中,上述步骤24,通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,可以包括如下步骤:Further, in a possible example, in the above step 24, the first keyword is matched with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain Multiple matching values can include the following steps:
241、确定所述第一关键字的第一属性信息;241. Determine first attribute information of the first keyword;
242、确定所述多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息;242. Determine second attribute information of each keyword in the plurality of second keywords to obtain a plurality of second attribute information.
243、将所述第一属性信息与所述多个第二属性信息进行匹配,得到多个属性匹配值,每一第二属性信息对应一个属性匹配值;243. Match the first attribute information with the multiple second attribute information to obtain multiple attribute matching values, and each second attribute information corresponds to an attribute matching value.
244、从所述多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取所述多个目标属性匹配值对应的关键字,得到多个目标第二关键字;244. Filter out the attribute matching values that meet the preset requirements from the multiple attribute matching values, obtain multiple target attribute matching values, obtain keywords corresponding to the multiple target attribute matching values, and obtain multiple target second Keywords;
245、通过所述预设日志搜索算法将所述第一关键字和所述多个目标第二关键字中的每一关键字进行匹配,得到所述多个匹配值。245. Use the preset log search algorithm to match each of the first keyword and the multiple target second keywords to obtain the multiple matching values.
具体实现中,第一属性信息、第二属性信息均可以包括以下至少一种:信息类型、关键字长度、关键字位置等等,在此不做限定。信息类型可以为以下至少一种:图片、标点符号、日志种类等等,在此不做限定。In specific implementation, both the first attribute information and the second attribute information may include at least one of the following: information type, keyword length, keyword location, etc., which are not limited herein. The information type can be at least one of the following: pictures, punctuation marks, log types, etc., which are not limited here.
具体实现中,日志搜索引擎可以确定第一关键字的第一属性信息,同时,还可以确定多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息。上述预设要求可以由用户自行设置或者系统默认,例如,预设要求为匹配值处于某一范围,进一步地,可以将第一属性信息与多个第二属性信息进行匹配,得到多个属性匹配值,每一第二属性信息对应一个属性匹配值,相当于为一个初匹配过程,接着,可以从多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取多个目标属性匹配值对应的关键字,得到多个目标第二关键字,通过预设日志搜索算法将第一关键字和多个目标第二关键字中的每一关键字进行匹配,得到多个匹配值,如此,可以提升日志搜索和匹配效率。In a specific implementation, the log search engine can determine the first attribute information of the first keyword, and at the same time, can also determine the second attribute information of each of the multiple second keywords to obtain multiple second attribute information. The above preset requirements can be set by the user or the system defaults. For example, the preset requirement is that the matching value is in a certain range. Further, the first attribute information can be matched with multiple second attribute information to obtain multiple attribute matches. Value, each second attribute information corresponds to an attribute matching value, which is equivalent to an initial matching process. Then, attribute matching values that meet the preset requirements can be filtered from multiple attribute matching values to obtain multiple target attribute matching values , Obtain keywords corresponding to multiple target attribute matching values, obtain multiple target second keywords, and match each of the first keyword with multiple target second keywords through a preset log search algorithm, Obtain multiple matching values. In this way, the log search and matching efficiency can be improved.
103、所述日志搜索引擎输出所述目标搜索结果。103. The log search engine outputs the target search result.
具体实现中,日志搜索引擎可以向接收端输出目标搜索结果,接收端则可以接收目标 搜索结果。In specific implementation, the log search engine can output the target search results to the receiving end, and the receiving end can receive the target search results.
在一个可能的示例中,上述步骤103,所述日志搜索引擎输出所述目标搜索结果,可以按照如下方式实施:In a possible example, in the foregoing step 103, the log search engine outputs the target search result, which can be implemented in the following manner:
所述日志搜索引擎以流式方式输出所述目标搜索结果。The log search engine outputs the target search results in a streaming manner.
具体实现中,日志搜索引擎可以以流式方式输出目标搜索结果,如此,可以实现有序且高效输出搜索结果。In specific implementation, the log search engine can output the target search results in a streaming manner, so that an orderly and efficient output of the search results can be achieved.
进一步地,在一个可能的示例中,上述步骤,所述所述日志搜索引擎以流式方式输出所述目标搜索结果,可以包括如下步骤:Further, in a possible example, in the above steps, the log search engine outputs the target search results in a streaming manner, which may include the following steps:
31、所述所述日志搜索引擎获取接收端的目标属性信息;31. The log search engine obtains target attribute information of the receiving end;
32、按照预设的属性信息与处理参数之间的映射关系,确定所述目标属性信息对应的目标处理参数;32. Determine the target processing parameter corresponding to the target attribute information according to the preset mapping relationship between the attribute information and the processing parameter;
33、按照所述目标处理参数处理所述目标搜索结果,得到处理搜索结果;33. Process the target search result according to the target processing parameter to obtain a processed search result;
34、以流式方式输出所述处理搜索结果。34. Output the processing search results in a streaming manner.
其中,本申请实施例中,属性信息可以为以下至少一种:设备标识、接收端的登录信息等等,在此不做限定,设备标识信息可以为以下至少一种:IP地址、设备型号、MAC地址、ICCID、IMEI等等,在此不做限定,接收端的登录信息可以为以下至少一种:登录账号、登录地理位置、登录方式等等,在此不做限定。处理参数可以为以下至少一种:显示参数(分辨率、颜色、字体大小、语言类型等等)、显示效果(动画、文字、语音等等)等等,在此不做限定。Among them, in the embodiment of the present application, the attribute information may be at least one of the following: device identification, login information of the receiving end, etc., which are not limited here, and the device identification information may be at least one of the following: IP address, device model, MAC Address, ICCID, IMEI, etc. are not limited here. The login information of the receiving end can be at least one of the following: login account, login geographic location, login method, etc., which are not limited here. The processing parameters can be at least one of the following: display parameters (resolution, color, font size, language type, etc.), display effects (animation, text, voice, etc.), etc., which are not limited here.
具体实现中,日志仓库服务中可以预先存储预设的属性信息与处理参数之间的映射关系,日志搜索引擎可以获取接收端的目标属性信息,进而,可以按照预设的属性信息与处理参数之间的映射关系,确定目标属性信息对应的目标处理参数,且按照目标处理参数处理目标搜索结果,得到处理搜索结果,并以流式方式输出处理搜索结果,一方面,可以针对不同用户显示与其相应的搜索结果,另一方面,以数据流输出搜索结果,可以提升搜索效率。In specific implementation, the log warehouse service can pre-store the mapping relationship between preset attribute information and processing parameters, and the log search engine can obtain the target attribute information of the receiving end, and further, it can be based on the preset attribute information and processing parameters. To determine the target processing parameters corresponding to the target attribute information, and process the target search results according to the target processing parameters to obtain the processed search results, and output the processed search results in a streaming manner. On the one hand, it can display the corresponding corresponding to different users. Search results, on the other hand, outputting search results in a data stream can improve search efficiency.
本申请实施例,能够解决相关技术中普遍采取的ELK日志服务方案里的搜索引擎ES需要用户干涉建立日志索引、需要消耗大量内存资源、一旦服务器宕机,数据恢复极其缓慢和低效、原始数据需要多次落盘损耗IO性能,并无法线性扩展的问题。上述本申请实施例,则采取Logengine充当搜索引擎,在同样具备高性能的同时,非常有效的解决了以上缺点,极大的节省了宝贵的服务器资源。进而能够为产生的海量日志数据提供全方位的日志集成服务。The embodiment of this application can solve the problem that the search engine ES in the ELK log service solution commonly adopted in related technologies requires user intervention to establish a log index, consumes a large amount of memory resources, and once the server goes down, data recovery is extremely slow and inefficient, and the original data It is a problem that IO performance needs to be placed multiple times and cannot be linearly expanded. In the above embodiment of the present application, Logengine is used as a search engine, which, while also having high performance, effectively solves the above shortcomings and greatly saves valuable server resources. In turn, it can provide a full range of log integration services for the massive log data generated.
具体实现中,本申请实施例,Logengine可以作为云平台日志服务loghouse的日志查询搜索引擎模块组件,为用户提供高效低能且丰富多样的日志数据搜索查询分析功能和接口,如支持类sql查询,支持流式对接大数据组件实时分析日志数据,支持关键字查询匹配,支持正则表达式查询过滤,支持实时日志tail,支持历史时间段的日志查询,支持日志下载等等。In specific implementation, in the embodiment of this application, Logengine can be used as the log query search engine module component of the cloud platform log service loghouse, providing users with high-efficiency, low-energy and rich and diverse log data search query analysis functions and interfaces, such as support for SQL queries, support Streaming and docking big data components to analyze log data in real time, support keyword query matching, support regular expression query filtering, support real-time log tail, support log query of historical time period, support log download, etc.
1、Logengine架构和设计方案为高性能无状态可线性扩展的服务组件,对用户完全透明,只暴露grpc和http接口给用户使用,同时实现对接多种大数据服务如spark、flink、kfaka等流式传输日志数据供其实时分析统计和搜索过滤。内部实现主要分为以下几个流程:1. Logengine architecture and design are high-performance, stateless and linearly scalable service components, which are completely transparent to users. Only grpc and http interfaces are exposed for users to use. At the same time, it can connect to a variety of big data services such as spark, flink, kfaka, etc. The log data is transmitted in a format for real-time analysis, statistics, search and filtering. The internal implementation is mainly divided into the following processes:
2、Logengine按照时间范围严格有序的从loghouse系统中流式获取日志数据,loghouse设计成kv存储,k是经过精心设计的按照时间维度和日志顺序产生的,v存储的是日志原始数据,底层依赖rocksdb,查找、定位和读写日志数据的io性能非常优秀,能够达到TB/s级别的速率,在实际生产环境中,极限速率是网卡流量的上限;2. Logengine obtains log data from the loghouse system in a strict and orderly manner according to the time range. Loghouse is designed as kv storage. K is carefully designed to be generated in accordance with the time dimension and log sequence. V stores the original log data, which is dependent on the bottom layer. Rocksdb, the io performance of finding, locating and reading and writing log data is very good, and can reach the rate of TB/s. In the actual production environment, the limit rate is the upper limit of the network card traffic;
3、按时间维度切割,并发获取流式日志数据,并对每一个流利用高性能字符串匹配算 法(如kmp算法、朴素算法等,本申请可以采取google开源的re2正则引擎算法)做日志关键字搜索和匹配,并将结果仍然以流式的输出到需求方。本申请日志数据在整个生态链里都是以日志流的方式被传输和被计算,因此最大限度的在不需要额外大量内存资源的消耗下,极大的提升了日志搜索的性能;3. Cut according to the time dimension, concurrently obtain streaming log data, and use high-performance string matching algorithms (such as kmp algorithm, naive algorithm, etc., this application can use the Google open source re2 regular engine algorithm) for each stream as the log key Word search and matching, and the results are still streamed to the demand side. The log data of this application is transmitted and calculated in the way of log streams in the entire ecological chain, so it can greatly improve the performance of log search without the consumption of a large amount of additional memory resources;
4、Logengine只充当日志流的分析计算模块,不存储相关数据,一旦日志数据被分析计算完毕就会把结果立即送往相关对端,因此,Logengine是一个完全无状态的服务,可线性动态扩展,并以cloud native的方式可迁移至任意平台;4. Logengine only acts as the analysis and calculation module of the log stream, and does not store relevant data. Once the log data is analyzed and calculated, the results will be sent to the relevant peer immediately. Therefore, Logengine is a completely stateless service that can be expanded linearly and dynamically. , And can be migrated to any platform in a cloud native way;
5、Logengine的搜索性能方面高达GB/s,且不需要庞大的内存和cpu资源支持,这是其他日志搜索引擎无法做到的;5. Logengine's search performance is as high as GB/s, and it does not require huge memory and cpu resource support, which is impossible for other log search engines;
6、Logengine的功能方面,为日志需求方提供了丰富多样的查询接口,让用户对日志系统的使用就像在本地查阅日志数据一样简单高效,同时,logengine也实现了聚合搜索的功能,包括跨集群、跨机房、异地多活等特性,并支持实时智能的监测日志数据和告警,及时通知需求方日志内出现的异常,帮助用户快速定位问题;6. In terms of the function of Logengine, it provides a rich and diverse query interface for log demanders, allowing users to use the log system as simple and efficient as looking up log data locally. At the same time, logengine also implements the function of aggregated search, including cross- Features such as clusters, cross-machine rooms, and multiple activities in different places, and supports real-time intelligent monitoring of log data and alarms, and timely notification of abnormalities in the demand-side log to help users quickly locate problems;
7、Logengine服务为大数据组件提供了相关接入方式,可直接对接spark、flink、kfaka等,为需要对海量日志数据进行分析归并的应用提供日志流的管道传输。7. The Logengine service provides related access methods for big data components, which can directly connect to spark, flink, kfaka, etc., and provide log stream pipeline transmission for applications that need to analyze and merge massive log data.
上述本申请实施例中的日志搜索引擎(Logengine),能够具备如下功能:The log search engine (Logengine) in the above embodiment of the present application can have the following functions:
1、Logengine不存储任何原始日志数据,对日志流进行实时搜索和分析,这样就节省了大量的内存资源;1. Logengine does not store any original log data, and searches and analyzes the log stream in real time, which saves a lot of memory resources;
2、由于不需要存储任何数据,所以Logengine是完全cloud native,可动态移植和线性扩展;2. Since there is no need to store any data, Logengine is completely cloud native, which can be dynamically transplanted and linearly expanded;
3、对用户完全透明友好使用,用户可以随心所欲的以任何方式写入日志数据,从写入后到通过Logengie查询的整个生态链,用户都是不感知也不需要额外的类似建立索引规则的操作;3. It is completely transparent and friendly to users. Users can write log data in any way they want. From writing to querying the entire ecological chain through Logengie, users do not perceive and do not need additional operations similar to indexing rules. ;
4、减少了日志数据的落盘次数,整个日志流只需要一次落盘(loghouse系统里需要落盘一次rocksdb),大大提高了日志数据的IO和查询性能;4. The number of log data placements is reduced, and the entire log stream only needs to be placed once (rocksdb is required to be placed once in the loghouse system), which greatly improves the IO and query performance of log data;
5、Logengine不需要恢复状态机,而且全部以容器自检方式运行,只要不是全部节点宕机,都不会影响用户的查询分析体验,而且一旦有节点宕机,通过自检,服务容器就会立即原地重新拉起投入服务,所以本申请的可用性和可靠性高达6个9。5. Logengine does not need to restore the state machine, and all runs in the container self-check mode. As long as not all nodes are down, it will not affect the user's query analysis experience, and once a node is down, the service container will pass the self-check Immediately re-launched and put into service in situ, so the availability and reliability of this application is as high as 6 9s.
在一个可能的示例中,步骤101之前,还可以包括如下步骤:In a possible example, before step 101, the following steps may also be included:
A1、获取用户的目标生理状态参数;A1. Obtain the user's target physiological state parameters;
A2、确定所述目标生理状态参数对应的目标情绪类型;A2. Determine the target emotion type corresponding to the target physiological state parameter;
A3、在所述目标情绪类型为预设情绪类型时,执行所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据的步骤。A3. When the target emotion type is a preset emotion type, execute the step of obtaining the target log data from the log warehouse service by the log search engine according to a preset time sequence.
其中,本申请实施例中,生理状态参数可以为用于反映用户生理机能的各种参数,生理状态参数可以为以下至少一种:心率、血压、血温、血脂含量、血糖含量、甲状腺素含量、肾上腺素含量、血小板含量、血氧含量等等,在此不做限定。预设情绪类型可以由用户自行设置或者系统默认。预设情绪类型可以为以下至少一种:沉闷、哭泣、平静、暴躁、兴奋、郁闷等等,在此不做限定。Among them, in the embodiments of the present application, the physiological state parameters may be various parameters used to reflect the physiological functions of the user, and the physiological state parameters may be at least one of the following: heart rate, blood pressure, blood temperature, blood lipid content, blood glucose content, and thyroxine content , Adrenaline content, platelet content, blood oxygen content, etc., are not limited here. The preset emotion type can be set by the user or the system defaults. The preset emotion type can be at least one of the following: dull, crying, calm, irritable, excited, depressed, etc., which are not limited here.
具体实现中,电子设备可以通过可该电子设备进行通信连接的可穿戴设获取用户的目标生理状态参数,不同的生理状态参数反映了用户的情绪类型,电子设备中可以预先存储生理状态参数与情绪类型之间的映射关系,进而,可以依据该映射关系确定目标生理状态参数对应的目标情绪类型,进而,可以在目标情绪类型为预设情绪类型时,执行步骤101,否则,则可以不执行步骤101。In specific implementation, the electronic device can obtain the user's target physiological state parameters through a wearable device that can communicate with the electronic device. Different physiological state parameters reflect the user's emotional type. The electronic device can pre-store the physiological state parameters and emotions. The mapping relationship between the types, and further, the target emotion type corresponding to the target physiological state parameter can be determined according to the mapping relationship, and further, when the target emotion type is the preset emotion type, step 101 may be executed, otherwise, step 101 may not be executed 101.
在一个可能的示例中,在所述目标生理状态参数为指定时间段内的心率变化曲线时, 上述步骤A1,确定所述目标生理状态参数对应的目标情绪类型,可以按照如下方式实施:In a possible example, when the target physiological state parameter is a heart rate change curve within a specified time period, the above step A1, determining the target emotion type corresponding to the target physiological state parameter, can be implemented in the following manner:
A11、对所述心率变化曲线进行采样,得到多个心率值;A11. Sampling the heart rate change curve to obtain multiple heart rate values;
A12、依据所述多个心率值进行均值运算,得到平均心率值;A12. Perform an average calculation based on the multiple heart rate values to obtain an average heart rate value;
A13、确定所述平均心率值对应的目标心率等级;A13. Determine the target heart rate level corresponding to the average heart rate value;
A14、按照预设的心率等级与第一情绪值之间的映射关系,确定所述目标心率等级对应的目标第一情绪值;A14. Determine the target first emotion value corresponding to the target heart rate level according to the preset mapping relationship between the heart rate level and the first emotion value;
A15、依据所述多个心率值进行均方差运算,得到目标均方差;A15. Perform the mean square error calculation according to the multiple heart rate values to obtain the target mean square error;
A16、按照预设的均方差与第二情绪值之间的映射关系,确定所述目标均方差对应的目标第二情绪值;A16. Determine the target second emotion value corresponding to the target mean square error according to the preset mapping relationship between the mean square error and the second emotion value;
A17、按照预设的心率等级与权值对之间的映射关系,确定所述目标心率等级对应的目标权值对,所述权值对包括第一权值和第二权值,所述第一权值为所述第一情绪值对应的权值,所述第二权值为所述第二情绪值对应的权值;A17. Determine the target weight pair corresponding to the target heart rate level according to the preset mapping relationship between the heart rate level and the weight value pair, and the weight value pair includes a first weight value and a second weight value. A weight value is a weight value corresponding to the first emotion value, and the second weight value is a weight value corresponding to the second emotion value;
A18、依据所述目标第一情绪值、所述目标第二情绪值和所述目标权值对进行加权运算,得到最终情绪值;A18. Perform a weighted operation according to the target first emotion value, the target second emotion value, and the target weight pair to obtain a final emotion value;
A19、按照预设的情绪值与情绪类型之间的映射关系,确定所述目标情绪值对应的所述目标情绪类型。A19. Determine the target emotion type corresponding to the target emotion value according to the preset mapping relationship between the emotion value and the emotion type.
其中,指定时间段可以由用户自行设置或者系统默认,电子设备中可以预先存储预设的心率等级与第一情绪值之间的映射关系,以及预设的均方差与第二情绪值之间的映射关系,以及预设的心率等级与权值对之间的映射关系,以及预设的情绪值与情绪类型之间的映射关系,上述权值对可以包括第一权值和第二权值,第一权值为第一情绪值对应的权值,第二权值为第二情绪值对应的权值,其中,第一权值与第二权值之和可以为1,且第一权值、第二权值的取值范围均为0~1。本申请实施例中,可以通过心率变化曲线来评估情绪。The specified time period can be set by the user or the system defaults. The electronic device can pre-store the mapping relationship between the preset heart rate level and the first emotion value, and the preset mean square error and the second emotion value. The mapping relationship, and the mapping relationship between the preset heart rate level and the weight value pair, and the mapping relationship between the preset emotion value and the emotion type, the above weight value pair may include a first weight value and a second weight value, The first weight value is the weight value corresponding to the first sentiment value, and the second weight value is the weight value corresponding to the second sentiment value. The sum of the first weight value and the second weight value can be 1, and the first weight value , The value range of the second weight is 0~1. In the embodiment of the present application, the emotion can be evaluated by the heart rate change curve.
具体实现中,电子设备可以对心率变化曲线进行采样,具体采样方式可以为:均匀采样或者随机采样,得到多个心率值,并且可以依据多个心率值进行均值运算,得到平均心率值,电子设备中可以预先存储心率值与心率等级之间的映射关系,进而,可以依据该映射关系确定平均心率值对应的目标心率等级,进而,可以按照上述预设的心率等级与第一情绪值之间的映射关系,确定目标心率等级对应的目标第一情绪值,进而,还可以依据多个心率值进行均方差运算,得到目标均方差,并且可以按照预设的均方差与第二情绪值之间的映射关系,确定该目标均方差对应的目标第二情绪值。In specific implementation, the electronic device can sample the heart rate curve. The specific sampling method can be: uniform sampling or random sampling to obtain multiple heart rate values, and the average heart rate can be calculated based on the multiple heart rate values to obtain the average heart rate value. The mapping relationship between the heart rate value and the heart rate level can be pre-stored in the, and then the target heart rate level corresponding to the average heart rate value can be determined according to the mapping relationship, and further, can be based on the preset heart rate level and the first emotional value. The mapping relationship is used to determine the target first emotion value corresponding to the target heart rate level. Furthermore, the mean square error operation can be performed on multiple heart rate values to obtain the target mean square error, and the target mean square error can be calculated according to the preset mean square error and the second emotion value. The mapping relationship determines the target second sentiment value corresponding to the target mean square error.
进一步地,电子设备还可以按照上述预设的心率等级与权值对之间的映射关系,确定目标心率等级对应的目标权值对,该目标权值对可以包括目标第一权值和目标第一权值,目标第一权值为目标第一情绪值对应的权值,目标第二权值为目标第二情绪值对应的权值,进而,电子设备可以依据目标第一情绪值、目标第二情绪值、目标第一权值和目标第二权值进行加权运算,得到最终情绪值,具体计算公式如下:Further, the electronic device may also determine a target weight pair corresponding to the target heart rate level according to the above-mentioned preset mapping relationship between the heart rate level and the weight value pair, and the target weight value pair may include the target first weight value and the target first weight value. A weight value, the target first weight value is the weight value corresponding to the target first emotion value, and the target second weight value is the weight value corresponding to the target second emotion value. Furthermore, the electronic device can be based on the target first emotion value and the target first emotion value. The second emotional value, the first weight of the target and the second weight of the target are weighted to obtain the final emotional value. The specific calculation formula is as follows:
最终情绪值=目标第一情绪值*目标第一权值+目标第二情绪值*目标第二权值Final sentiment value = target first sentiment value * target first weight + target second sentiment value * target second weight
进而,可以按照上述预设的情绪值与情绪类型之间的映射关系,确定目标情绪值对应的目标情绪类型。其中,上述平均心率反映了用户的心率值,心率的均方差反映了心率稳定性,通过平均心率和均方差两个维度反映了用户的情绪,能够精准确定用户的情绪类型。Furthermore, the target emotion type corresponding to the target emotion value can be determined according to the foregoing preset mapping relationship between the emotion value and the emotion type. Among them, the above average heart rate reflects the user's heart rate value, the mean square error of the heart rate reflects the stability of the heart rate, and the user's emotion is reflected through the two dimensions of the average heart rate and the mean square error, and the user's emotion type can be accurately determined.
可以看出,本申请实施例所描述的日志数据处理方法,应用于日志服务系统,日志服务系统包括日志搜索引擎和日志仓库服务,日志搜索引擎按照预设时序从日志仓库服务获取目标日志数据,日志搜索引擎通过预设日志搜索算法对目标日志数据进行关键字搜索和匹配,得到目标搜索结果,日志搜索引擎输出目标搜索结果,如此,日志搜索引擎不存储任何原始日志数据,而是从日志仓库服务获取日志数据,且对日志进行实时搜索和分析,能够节省内存资源。It can be seen that the log data processing method described in the embodiment of this application is applied to a log service system. The log service system includes a log search engine and a log warehouse service. The log search engine obtains target log data from the log warehouse service according to a preset timing. The log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results. The log search engine outputs the target search results. In this way, the log search engine does not store any original log data, but from the log warehouse The service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
与上述一致地,请参阅图2,图2是本申请实施例提供的另一种日志数据处理方法的流程示意图,本实施例中所描述的日志数据处理方法,应用于如图1A的服务器或者图1B所示的系统架构,该服务器可以包括日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,该方法可包括以下步骤:Consistent with the above, please refer to FIG. 2. FIG. 2 is a schematic flowchart of another log data processing method provided by an embodiment of the present application. The log data processing method described in this embodiment is applied to the server as shown in FIG. 1A or In the system architecture shown in FIG. 1B, the server may include a log service system, and the log service system includes a log search engine and a log warehouse service. The method may include the following steps:
201、所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据,+所述日志仓库服务针对所述目标日志数据的存储方式为KV存储,所述KV存储的键值由时间维度和日志顺序生成,所述KV的V存储的是原始日志数据,所述目标日志数据为所述原始日志数据的部分日志数据。201. The log search engine obtains target log data from the log warehouse service according to a preset time sequence, + the log warehouse service stores the target log data in KV storage, and the key value of the KV storage is determined by time The dimensions and log sequence are generated, the V of the KV stores original log data, and the target log data is part of the log data of the original log data.
202、所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果。202. The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results.
203、所述日志搜索引擎以流式方式输出所述处理搜索结果。203. The log search engine outputs the processed search result in a streaming manner.
其中,上述步骤201-步骤203的具体描述可以参照图1C所示的日志数据处理方法,在此不再赘述。For the detailed description of the above steps 201 to 203, reference may be made to the log data processing method shown in FIG. 1C, which will not be repeated here.
可以看出,本申请实施例所描述的日志数据处理方法,应用于日志服务系统,日志服务系统包括日志搜索引擎和日志仓库服务,日志搜索引擎不存储任何原始日志数据,而是从日志仓库服务获取日志数据,且对日志进行实时搜索和分析,能够节省内存资源,另外,日志数据在整个生态链里都是以日志流的方式被传输和被计算,因此最大限度的在不需要额外大量内存资源的消耗下,极大的提升了日志搜索的性能。It can be seen that the log data processing method described in the embodiment of this application is applied to a log service system. The log service system includes a log search engine and a log warehouse service. The log search engine does not store any original log data, but serves from the log warehouse. Obtain log data, and perform real-time search and analysis of logs, which can save memory resources. In addition, log data is transmitted and calculated in the form of log streams in the entire ecological chain, so that there is no need for additional large amounts of memory to the greatest extent. Under the consumption of resources, the performance of log search is greatly improved.
以下是实施上述日志数据处理方法的装置,具体如下:The following is a device for implementing the above log data processing method, which is specifically as follows:
与上述一致地,请参阅图3,图3是本申请实施例提供的一种服务器,包括:处理器和存储器;以及一个或多个程序,该服务器包括日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行以下步骤的指令:Consistent with the above, please refer to FIG. 3, which is a server provided by an embodiment of the present application, including: a processor and a memory; and one or more programs, the server includes a log service system, and the log service system includes Log search engine and log warehouse service, the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The log search engine obtains target log data from the log warehouse service according to a preset time sequence;
所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results;
所述日志搜索引擎输出所述目标搜索结果。The log search engine outputs the target search result.
可以看出,本申请实施例所描述的服务器,该服务器包括日志服务系统,日志服务系统包括日志搜索引擎和日志仓库服务,日志搜索引擎按照预设时序从日志仓库服务获取目标日志数据,日志搜索引擎通过预设日志搜索算法对目标日志数据进行关键字搜索和匹配,得到目标搜索结果,日志搜索引擎输出目标搜索结果,如此,日志搜索引擎不存储任何原始日志数据,而是从日志仓库服务获取日志数据,且对日志进行实时搜索和分析,能够节省内存资源。It can be seen that the server described in the embodiment of the present application includes a log service system. The log service system includes a log search engine and a log warehouse service. The log search engine obtains target log data from the log warehouse service according to a preset timing, and the log search The engine performs keyword search and matching on the target log data through the preset log search algorithm to obtain the target search results, and the log search engine outputs the target search results. In this way, the log search engine does not store any original log data, but obtains it from the log warehouse service Log data, and real-time search and analysis of logs can save memory resources.
在一个可能的示例中,在所述日志搜索引擎按照预设时序从所述日志仓库获取目标日志数据方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of the log search engine obtaining target log data from the log warehouse according to a preset time sequence, the program includes instructions for executing the following steps:
所述日志搜索引擎按照时间维度切割所述原始日志数据,得到切割日志数据;The log search engine cuts the original log data according to the time dimension to obtain cut log data;
将所述切割日志数据处理为流式日志数据,得到所述目标日志数据。The cutting log data is processed into streaming log data to obtain the target log data.
在一个可能的示例中,在所述日志搜索引擎输出所述目标搜索结果方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of the log search engine outputting the target search result, the program includes instructions for executing the following steps:
所述日志搜索引擎以流式方式输出所述目标搜索结果。The log search engine outputs the target search results in a streaming manner.
在一个可能的示例中,在所述所述日志搜索引擎以流式方式输出所述目标搜索结果方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of the log search engine outputting the target search results in a streaming manner, the program includes instructions for executing the following steps:
所述所述日志搜索引擎获取接收端的目标属性信息;The log search engine obtains the target attribute information of the receiving end;
按照预设的属性信息与处理参数之间的映射关系,确定所述目标属性信息对应的目标处理参数;Determine the target processing parameter corresponding to the target attribute information according to the preset mapping relationship between the attribute information and the processing parameter;
按照所述目标处理参数处理所述目标搜索结果,得到处理搜索结果;Process the target search result according to the target processing parameter to obtain a processed search result;
以流式方式输出所述处理搜索结果。The processing search results are output in a streaming manner.
在一个可能的示例中,所述日志搜索引擎仅用于实现日志流的分析功能,且并不用于存储数据。In a possible example, the log search engine is only used to implement the log stream analysis function, and is not used to store data.
在一个可能的示例中,在所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of the log search engine performing keyword search and matching on the target log data through a preset log search algorithm to obtain target search results, the program includes instructions for executing the following steps:
所述日志搜索引擎对所述目标日志数据进行关键字提取,得到第一关键字;The log search engine performs keyword extraction on the target log data to obtain the first keyword;
获取预先存储的库数据;Obtain pre-stored library data;
对所述库数据进行关键字提取,得到多个第二关键字;Performing keyword extraction on the library data to obtain multiple second keywords;
通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,所述多个第二关键字中每一第二关键字对应一个匹配值;Match the first keyword with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain a plurality of matching values, and among the plurality of second keywords Each second keyword corresponds to a match value;
从所述多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为所述目标搜索结果。The maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
在一个可能的示例中,在所述通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值方面,所述程序包括用于执行以下步骤的指令:In a possible example, the first keyword and each second keyword of the plurality of second keywords are matched by the preset log search algorithm to obtain a plurality of matching values In one aspect, the program includes instructions for performing the following steps:
确定所述第一关键字的第一属性信息;Determine the first attribute information of the first keyword;
确定所述多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息;Determining second attribute information of each of the plurality of second keywords to obtain a plurality of second attribute information;
将所述第一属性信息与所述多个第二属性信息进行匹配,得到多个属性匹配值,每一第二属性信息对应一个属性匹配值;Matching the first attribute information with the plurality of second attribute information to obtain a plurality of attribute matching values, and each second attribute information corresponds to an attribute matching value;
从所述多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取所述多个目标属性匹配值对应的关键字,得到多个目标第二关键字;Filter out the attribute matching values that meet the preset requirements from the multiple attribute matching values to obtain multiple target attribute matching values, obtain keywords corresponding to the multiple target attribute matching values, and obtain multiple target second keywords ;
通过所述预设日志搜索算法将所述第一关键字和所述多个目标第二关键字中的每一关键字进行匹配,得到所述多个匹配值。The first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
在一个可能的示例中,所述日志仓库服务针对所述目标日志数据的存储方式为KV存储。In a possible example, the storage mode of the log warehouse service for the target log data is KV storage.
在一个可能的示例中,所述KV存储的键值由时间维度和日志顺序生成,所述KV的V存储的是原始日志数据,所述目标日志数据为所述原始日志数据的部分日志数据。In a possible example, the key value stored by the KV is generated from the time dimension and log sequence, the V of the KV stores original log data, and the target log data is part of the log data of the original log data.
请参阅图4,图4是本实施例提供的一种日志数据处理装置的结构示意图。该日志数据处理装置应用于日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,该日志服务系统应用于如图1A所示的服务器或者图1B所示的系统架构,所述日志数据处理装置包括:获取单元401、搜索单元402和输出单元403,其中,Please refer to FIG. 4, which is a schematic structural diagram of a log data processing apparatus provided by this embodiment. The log data processing device is applied to a log service system. The log service system includes a log search engine and a log warehouse service. The log service system is applied to the server shown in FIG. 1A or the system architecture shown in FIG. 1B. The data processing device includes: an acquisition unit 401, a search unit 402, and an output unit 403, where:
所述获取单元401,用于通过所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The obtaining unit 401 is configured to obtain target log data from the log warehouse service according to a preset time sequence through the log search engine;
所述搜索单元402,用于通过所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The searching unit 402 is configured to perform keyword search and matching on the target log data through the log search engine through a preset log search algorithm to obtain target search results;
所述输出单元403,用于通过所述日志搜索引擎输出所述目标搜索结果。The output unit 403 is configured to output the target search result through the log search engine.
可以看出,本申请实施例所描述的日志数据处理装置,应用于日志服务系统,日志服务系统包括日志搜索引擎和日志仓库服务,日志搜索引擎按照预设时序从日志仓库服务获 取目标日志数据,日志搜索引擎通过预设日志搜索算法对目标日志数据进行关键字搜索和匹配,得到目标搜索结果,日志搜索引擎输出目标搜索结果,如此,日志搜索引擎不存储任何原始日志数据,而是从日志仓库服务获取日志数据,且对日志进行实时搜索和分析,能够节省内存资源。It can be seen that the log data processing device described in the embodiment of the present application is applied to a log service system. The log service system includes a log search engine and a log warehouse service. The log search engine obtains target log data from the log warehouse service according to a preset timing. The log search engine performs keyword search and matching on the target log data through the preset log search algorithm, and obtains the target search results. The log search engine outputs the target search results. In this way, the log search engine does not store any original log data, but from the log warehouse The service obtains log data, and performs real-time search and analysis of logs, which can save memory resources.
在一个可能的示例中,在所述通过所述日志搜索引擎按照预设时序从所述日志仓库获取目标日志数据方面,所述获取单元401具体用于:In a possible example, in terms of obtaining target log data from the log warehouse according to a preset time sequence through the log search engine, the obtaining unit 401 is specifically configured to:
通过所述日志搜索引擎按照时间维度切割所述原始日志数据,得到切割日志数据;Cutting the original log data according to the time dimension by the log search engine to obtain cutting log data;
将所述切割日志数据处理为流式日志数据,得到所述目标日志数据。The cutting log data is processed into streaming log data to obtain the target log data.
在一个可能的示例中,在所述通过所述日志搜索引擎输出所述目标搜索结果,所述输出单元403具体用于:In a possible example, in the output of the target search result through the log search engine, the output unit 403 is specifically configured to:
通过所述日志搜索引擎以流式方式输出所述目标搜索结果。The target search result is output in a streaming manner through the log search engine.
在一个可能的示例中,在所述通过所述所述日志搜索引擎以流式方式输出所述目标搜索结果方面,所述输出单元401具体用于:In a possible example, in terms of outputting the target search result in a streaming manner through the log search engine, the output unit 401 is specifically configured to:
通过所述所述日志搜索引擎获取接收端的目标属性信息;Obtaining target attribute information of the receiving end through the log search engine;
按照预设的属性信息与处理参数之间的映射关系,确定所述目标属性信息对应的目标处理参数;Determine the target processing parameter corresponding to the target attribute information according to the preset mapping relationship between the attribute information and the processing parameter;
按照所述目标处理参数处理所述目标搜索结果,得到处理搜索结果;Process the target search result according to the target processing parameter to obtain a processed search result;
以流式方式输出所述处理搜索结果。The processing search results are output in a streaming manner.
在一个可能的示例中,所述日志搜索引擎仅用于实现日志流的分析功能,且并不用于存储数据。In a possible example, the log search engine is only used to implement the log stream analysis function, and is not used to store data.
在一个可能的示例中,在所述通过所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果方面,所述搜索单元402具体用于:In a possible example, in terms of performing keyword search and matching on the target log data through the log search engine and the preset log search algorithm to obtain target search results, the search unit 402 is specifically configured to:
通过所述日志搜索引擎对所述目标日志数据进行关键字提取,得到第一关键字;Performing keyword extraction on the target log data through the log search engine to obtain the first keyword;
获取预先存储的库数据;Obtain pre-stored library data;
对所述库数据进行关键字提取,得到多个第二关键字;Performing keyword extraction on the library data to obtain multiple second keywords;
通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,所述多个第二关键字中每一第二关键字对应一个匹配值;Match the first keyword with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain a plurality of matching values, and among the plurality of second keywords Each second keyword corresponds to a match value;
从所述多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为所述目标搜索结果。The maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
在一个可能的示例中,在所述通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值方面,所述搜索单元402具体用于:In a possible example, the first keyword and each second keyword of the plurality of second keywords are matched by the preset log search algorithm to obtain a plurality of matching values In aspect, the searching unit 402 is specifically configured to:
确定所述第一关键字的第一属性信息;Determine the first attribute information of the first keyword;
确定所述多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息;Determining second attribute information of each of the plurality of second keywords to obtain a plurality of second attribute information;
将所述第一属性信息与所述多个第二属性信息进行匹配,得到多个属性匹配值,每一第二属性信息对应一个属性匹配值;Matching the first attribute information with the plurality of second attribute information to obtain a plurality of attribute matching values, and each second attribute information corresponds to an attribute matching value;
从所述多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取所述多个目标属性匹配值对应的关键字,得到多个目标第二关键字;Filter out the attribute matching values that meet the preset requirements from the multiple attribute matching values to obtain multiple target attribute matching values, obtain keywords corresponding to the multiple target attribute matching values, and obtain multiple target second keywords ;
通过所述预设日志搜索算法将所述第一关键字和所述多个目标第二关键字中的每一关键字进行匹配,得到所述多个匹配值。The first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
在一个可能的示例中,所述日志仓库服务针对所述目标日志数据的存储方式为KV存储。In a possible example, the storage mode of the log warehouse service for the target log data is KV storage.
在一个可能的示例中,所述KV存储的键值由时间维度和日志顺序生成,所述KV的V存储的是原始日志数据,所述目标日志数据为所述原始日志数据的部分日志数据。In a possible example, the key value stored by the KV is generated from the time dimension and log sequence, the V of the KV stores original log data, and the target log data is part of the log data of the original log data.
可以理解的是,本实施例的日志数据处理装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is understandable that the functions of the program modules of the log data processing apparatus of this embodiment can be implemented according to the method in the above method embodiment, and the specific implementation process can be referred to the relevant description of the above method embodiment, which will not be repeated here. .
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种日志数据处理方法的部分或全部步骤。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute any log data processing method recorded in the above method embodiment. Part or all of the steps.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种日志数据处理方法的部分或全部步骤。The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause a computer to execute the method described in the foregoing method embodiment. Part or all of the steps of any log data processing method.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed 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 may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The foregoing memory includes: U disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash disk , ROM, RAM, magnetic disk or CD, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the application; at the same time, for Those of ordinary skill in the art, based on the idea of the application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation to the application.

Claims (20)

  1. 一种日志数据处理方法,其特征在于,应用于日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述方法包括:A log data processing method, characterized in that it is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the method includes:
    所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The log search engine obtains target log data from the log warehouse service according to a preset time sequence;
    所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results;
    所述日志搜索引擎输出所述目标搜索结果。The log search engine outputs the target search result.
  2. 根据权利要求1所述的方法,其特征在于,所述日志搜索引擎按照预设时序从所述日志仓库获取目标日志数据,包括:The method according to claim 1, wherein the log search engine acquiring target log data from the log warehouse according to a preset time sequence comprises:
    所述日志搜索引擎按照时间维度切割所述原始日志数据,得到切割日志数据;The log search engine cuts the original log data according to the time dimension to obtain cut log data;
    将所述切割日志数据处理为流式日志数据,得到所述目标日志数据。The cutting log data is processed into streaming log data to obtain the target log data.
  3. 根据权利要求2所述的方法,其特征在于,所述日志搜索引擎输出所述目标搜索结果,包括:The method according to claim 2, wherein the log search engine outputting the target search result comprises:
    所述日志搜索引擎以流式方式输出所述目标搜索结果。The log search engine outputs the target search results in a streaming manner.
  4. 根据权利要求3所述的方法,其特征在于,所述所述日志搜索引擎以流式方式输出所述目标搜索结果,包括:The method according to claim 3, wherein the log search engine outputting the target search results in a streaming manner comprises:
    所述所述日志搜索引擎获取接收端的目标属性信息;The log search engine obtains the target attribute information of the receiving end;
    按照预设的属性信息与处理参数之间的映射关系,确定所述目标属性信息对应的目标处理参数;Determine the target processing parameter corresponding to the target attribute information according to the preset mapping relationship between the attribute information and the processing parameter;
    按照所述目标处理参数处理所述目标搜索结果,得到处理搜索结果;Process the target search result according to the target processing parameter to obtain a processed search result;
    以流式方式输出所述处理搜索结果。The processing search results are output in a streaming manner.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述日志搜索引擎仅用于实现日志流的分析功能,且并不用于存储数据。The method according to any one of claims 1 to 4, wherein the log search engine is only used to implement log stream analysis functions, and is not used to store data.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果,包括:The method according to any one of claims 1-5, wherein the log search engine performs keyword search and matching on the target log data by using a preset log search algorithm to obtain target search results, comprising:
    所述日志搜索引擎对所述目标日志数据进行关键字提取,得到第一关键字;The log search engine performs keyword extraction on the target log data to obtain the first keyword;
    获取预先存储的库数据;Obtain pre-stored library data;
    对所述库数据进行关键字提取,得到多个第二关键字;Performing keyword extraction on the library data to obtain multiple second keywords;
    通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,所述多个第二关键字中每一第二关键字对应一个匹配值;Match the first keyword with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain a plurality of matching values, and among the plurality of second keywords Each second keyword corresponds to a match value;
    从所述多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为所述目标搜索结果。The maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
  7. 根据权利要求6所述的方法,其特征在于,所述通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,包括:8. The method according to claim 6, wherein the matching of the first keyword and each second keyword of the plurality of second keywords is performed by the preset log search algorithm, Get multiple matching values, including:
    确定所述第一关键字的第一属性信息;Determine the first attribute information of the first keyword;
    确定所述多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息;Determining second attribute information of each of the plurality of second keywords to obtain a plurality of second attribute information;
    将所述第一属性信息与所述多个第二属性信息进行匹配,得到多个属性匹配值,每一第二属性信息对应一个属性匹配值;Matching the first attribute information with the plurality of second attribute information to obtain a plurality of attribute matching values, and each second attribute information corresponds to an attribute matching value;
    从所述多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取所述多个目标属性匹配值对应的关键字,得到多个目标第二关键字;Filter out the attribute matching values that meet the preset requirements from the multiple attribute matching values to obtain multiple target attribute matching values, obtain keywords corresponding to the multiple target attribute matching values, and obtain multiple target second keywords ;
    通过所述预设日志搜索算法将所述第一关键字和所述多个目标第二关键字中的每一关键字进行匹配,得到所述多个匹配值。The first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述日志仓库服务针对所述目标日志数据的存储方式为KV存储。The method according to any one of claims 1-7, wherein the storage mode of the log warehouse service for the target log data is KV storage.
  9. 根据权利要求8所述的方法,其特征在于,所述KV存储的键值由时间维度和日志顺序生成,所述KV的V存储的是原始日志数据,所述目标日志数据为所述原始日志数据的部分日志数据。The method according to claim 8, wherein the key value stored in the KV is generated by the time dimension and log sequence, the V of the KV stores original log data, and the target log data is the original log Part of the log data of the data.
  10. 一种日志数据处理装置,其特征在于,应用于日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述装置包括:获取单元、搜索单元和输出单元,其中,A log data processing device, characterized in that it is applied to a log service system, the log service system includes a log search engine and a log warehouse service, and the device includes: an acquisition unit, a search unit, and an output unit, wherein:
    所述获取单元,用于通过所述日志搜索引擎按照预设时序从所述日志仓库服务获取目标日志数据;The obtaining unit is configured to obtain target log data from the log warehouse service according to a preset time sequence through the log search engine;
    所述搜索单元,用于通过所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果;The search unit is configured to perform keyword search and matching on the target log data through the log search engine through a preset log search algorithm to obtain target search results;
    所述输出单元,用于通过所述日志搜索引擎输出所述目标搜索结果。The output unit is configured to output the target search result through the log search engine.
  11. 根据权利要求10所述的装置,其特征在于,在所述通过所述日志搜索引擎按照预设时序从所述日志仓库获取目标日志数据方面,所述获取单元具体用于:The device according to claim 10, wherein, in the aspect of obtaining target log data from the log warehouse according to a preset time sequence through the log search engine, the obtaining unit is specifically configured to:
    通过所述日志搜索引擎按照时间维度切割所述原始日志数据,得到切割日志数据;Cutting the original log data according to the time dimension by the log search engine to obtain cutting log data;
    将所述切割日志数据处理为流式日志数据,得到所述目标日志数据。The cutting log data is processed into streaming log data to obtain the target log data.
  12. 根据权利要求11所述的装置,其特征在于,在所述通过所述日志搜索引擎输出所述目标搜索结果,所述输出单元具体用于:The device according to claim 11, wherein, in the output of the target search result through the log search engine, the output unit is specifically configured to:
    通过所述日志搜索引擎以流式方式输出所述目标搜索结果。The target search result is output in a streaming manner through the log search engine.
  13. 根据权利要求12所述的装置,其特征在于,在所述通过所述所述日志搜索引擎以流式方式输出所述目标搜索结果方面,所述输出单元具体用于:The device according to claim 12, wherein in the aspect of outputting the target search result in a streaming manner through the log search engine, the output unit is specifically configured to:
    通过所述所述日志搜索引擎获取接收端的目标属性信息;Obtaining target attribute information of the receiving end through the log search engine;
    按照预设的属性信息与处理参数之间的映射关系,确定所述目标属性信息对应的目标处理参数;Determine the target processing parameter corresponding to the target attribute information according to the preset mapping relationship between the attribute information and the processing parameter;
    按照所述目标处理参数处理所述目标搜索结果,得到处理搜索结果;Process the target search result according to the target processing parameter to obtain a processed search result;
    以流式方式输出所述处理搜索结果。The processing search results are output in a streaming manner.
  14. 根据权利要求10-13任一项所述的装置,其特征在于,所述日志搜索引擎仅用于实现日志流的分析功能,且并不用于存储数据。The device according to any one of claims 10-13, wherein the log search engine is only used to implement log stream analysis functions, and is not used to store data.
  15. 根据权利要求10-14任一项所述的装置,其特征在于,在所述通过所述日志搜索引擎通过预设日志搜索算法对所述目标日志数据进行关键字搜索和匹配,得到目标搜索结果方面,所述搜索单元具体用于:The device according to any one of claims 10-14, wherein the target log data is searched and matched by keywords by the log search engine through a preset log search algorithm to obtain target search results On the one hand, the search unit is specifically used for:
    通过所述日志搜索引擎对所述目标日志数据进行关键字提取,得到第一关键字;Performing keyword extraction on the target log data through the log search engine to obtain the first keyword;
    获取预先存储的库数据;Obtain pre-stored library data;
    对所述库数据进行关键字提取,得到多个第二关键字;Performing keyword extraction on the library data to obtain multiple second keywords;
    通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值,所述多个第二关键字中每一第二关键字对应一个匹配值;Match the first keyword with each second keyword of the plurality of second keywords through the preset log search algorithm to obtain a plurality of matching values, and among the plurality of second keywords Each second keyword corresponds to a match value;
    从所述多个匹配值中选取最大值,并将最大值对应的第二关键字对应的内容作为所述目标搜索结果。The maximum value is selected from the multiple matching values, and the content corresponding to the second keyword corresponding to the maximum value is used as the target search result.
  16. 根据权利要求15所述的装置,其特征在于,在所述通过所述预设日志搜索算法将所述第一关键字和所述多个第二关键字中的每一第二关键字进行匹配,得到多个匹配值方面,所述搜索单元具体用于:15. The device of claim 15, wherein the first keyword is matched with each second keyword of the plurality of second keywords through the preset log search algorithm , In terms of obtaining multiple matching values, the search unit is specifically configured to:
    确定所述第一关键字的第一属性信息;Determine the first attribute information of the first keyword;
    确定所述多个第二关键字中每一关键字的第二属性信息,得到多个第二属性信息;Determining second attribute information of each of the plurality of second keywords to obtain a plurality of second attribute information;
    将所述第一属性信息与所述多个第二属性信息进行匹配,得到多个属性匹配值,每一 第二属性信息对应一个属性匹配值;Matching the first attribute information with the plurality of second attribute information to obtain a plurality of attribute matching values, and each second attribute information corresponds to an attribute matching value;
    从所述多个属性匹配值中筛选出符合预设要求的属性匹配值,得到多个目标属性匹配值,获取所述多个目标属性匹配值对应的关键字,得到多个目标第二关键字;Filter out the attribute matching values that meet the preset requirements from the multiple attribute matching values to obtain multiple target attribute matching values, obtain keywords corresponding to the multiple target attribute matching values, and obtain multiple target second keywords ;
    通过所述预设日志搜索算法将所述第一关键字和所述多个目标第二关键字中的每一关键字进行匹配,得到所述多个匹配值。The first keyword and each of the multiple target second keywords are matched by the preset log search algorithm to obtain the multiple matching values.
  17. 根据权利要求10-16任一项所述的装置,其特征在于,所述日志仓库服务针对所述目标日志数据的存储方式为KV存储。The device according to any one of claims 10-16, wherein the storage mode of the log warehouse service for the target log data is KV storage.
  18. 一种服务器,其特征在于,该服务器包括处理器、存储器、通信接口,以及一个或多个程序,该服务器包括日志服务系统,所述日志服务系统包括日志搜索引擎和日志仓库服务,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。A server, characterized in that the server includes a processor, a memory, a communication interface, and one or more programs, the server includes a log service system, the log service system includes a log search engine and a log warehouse service, the one One or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1-9.
  19. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 1-9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。A computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of claims 1-9 The method described.
PCT/CN2020/091319 2020-05-20 2020-05-20 Log data processing method and related product WO2021232292A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080099562.XA CN115380282A (en) 2020-05-20 2020-05-20 Log data processing method and related product
PCT/CN2020/091319 WO2021232292A1 (en) 2020-05-20 2020-05-20 Log data processing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/091319 WO2021232292A1 (en) 2020-05-20 2020-05-20 Log data processing method and related product

Publications (1)

Publication Number Publication Date
WO2021232292A1 true WO2021232292A1 (en) 2021-11-25

Family

ID=78709078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091319 WO2021232292A1 (en) 2020-05-20 2020-05-20 Log data processing method and related product

Country Status (2)

Country Link
CN (1) CN115380282A (en)
WO (1) WO2021232292A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114297189A (en) * 2022-01-10 2022-04-08 成都国铁电气设备有限公司 Method for cleaning geometric detection data of subway track based on Flink stream processing
CN115378803A (en) * 2022-04-13 2022-11-22 网易(杭州)网络有限公司 Log management method and device, block chain node and storage medium
CN116678162A (en) * 2023-08-02 2023-09-01 八爪鱼人工智能科技(常熟)有限公司 Cold storage operation information management method, system and storage medium based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101641674A (en) * 2006-10-05 2010-02-03 斯普兰克公司 Time series search engine
CN103914485A (en) * 2013-01-07 2014-07-09 上海宝信软件股份有限公司 System and method for remotely collecting, retrieving and displaying application system logs
CN107332685A (en) * 2017-05-22 2017-11-07 国网安徽省电力公司信息通信分公司 A kind of method based on big data O&M daily record applied in state's net cloud
CN108572971A (en) * 2017-03-09 2018-09-25 百度在线网络技术(北京)有限公司 It is a kind of to be used to excavate and the method and apparatus of the relevant keyword of term
US10235417B1 (en) * 2015-09-02 2019-03-19 Amazon Technologies, Inc. Partitioned search of log events

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101641674A (en) * 2006-10-05 2010-02-03 斯普兰克公司 Time series search engine
CN103914485A (en) * 2013-01-07 2014-07-09 上海宝信软件股份有限公司 System and method for remotely collecting, retrieving and displaying application system logs
US10235417B1 (en) * 2015-09-02 2019-03-19 Amazon Technologies, Inc. Partitioned search of log events
CN108572971A (en) * 2017-03-09 2018-09-25 百度在线网络技术(北京)有限公司 It is a kind of to be used to excavate and the method and apparatus of the relevant keyword of term
CN107332685A (en) * 2017-05-22 2017-11-07 国网安徽省电力公司信息通信分公司 A kind of method based on big data O&M daily record applied in state's net cloud

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114297189A (en) * 2022-01-10 2022-04-08 成都国铁电气设备有限公司 Method for cleaning geometric detection data of subway track based on Flink stream processing
CN114297189B (en) * 2022-01-10 2024-05-10 成都国铁电气设备有限公司 Subway track geometry detection data cleaning method based on Flink stream processing
CN115378803A (en) * 2022-04-13 2022-11-22 网易(杭州)网络有限公司 Log management method and device, block chain node and storage medium
CN115378803B (en) * 2022-04-13 2023-12-12 网易(杭州)网络有限公司 Log management method, device, blockchain node and storage medium
CN116678162A (en) * 2023-08-02 2023-09-01 八爪鱼人工智能科技(常熟)有限公司 Cold storage operation information management method, system and storage medium based on artificial intelligence
CN116678162B (en) * 2023-08-02 2023-09-26 八爪鱼人工智能科技(常熟)有限公司 Cold storage operation information management method, system and storage medium based on artificial intelligence

Also Published As

Publication number Publication date
CN115380282A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
WO2021232292A1 (en) Log data processing method and related product
US11645471B1 (en) Determining a relationship recommendation for a natural language request
JP6839234B2 (en) Feedback controller for data transmission
US10845950B2 (en) Web browser extension
TWI597964B (en) Message storing method and device, and communication terminal
CN104965842B (en) Method and apparatus are recommended in search
US20150058681A1 (en) Monitoring, detection and analysis of data from different services
US11494395B2 (en) Creating dashboards for viewing data in a data storage system based on natural language requests
JP7087121B2 (en) Landing page processing methods, equipment, equipment and media
CN107666515B (en) Image processing method and device, computer equipment, computer readable storage medium
US20230169134A1 (en) Annotation and retrieval of personal bookmarks
EP3997589A1 (en) Delta graph traversing system
CN104063400B (en) Data search method and data search device
CN113434075A (en) Information display method and device and electronic equipment
WO2021164253A1 (en) Method and device for real-time multidimensional analysis of user behaviors, and storage medium
WO2021007757A1 (en) User identification method and related product
JP2020515123A (en) Message notification method and terminal
WO2021223177A1 (en) Abnormal file detection method and related product
WO2017074808A1 (en) Single unified ranker
CN110140120B (en) Contextual insights system
WO2019118252A1 (en) Contextual data transformation of image content
US20170347250A1 (en) Method, mbile terminal, and server for displaying data analysis result
US20220197939A1 (en) Image-based search method, server, terminal, and medium
WO2021000084A1 (en) Data classification method and related product
US20220043873A1 (en) Methods and systems for personalized, zero-input suggestions based on semi-supervised activity clusters

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: 20936317

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205A DATED 18.04.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20936317

Country of ref document: EP

Kind code of ref document: A1