WO2025123745A1 - 一种日志文件存储方法、系统、电子设备及存储介质 - Google Patents

一种日志文件存储方法、系统、电子设备及存储介质 Download PDF

Info

Publication number
WO2025123745A1
WO2025123745A1 PCT/CN2024/112984 CN2024112984W WO2025123745A1 WO 2025123745 A1 WO2025123745 A1 WO 2025123745A1 CN 2024112984 W CN2024112984 W CN 2024112984W WO 2025123745 A1 WO2025123745 A1 WO 2025123745A1
Authority
WO
WIPO (PCT)
Prior art keywords
log
time information
time
information
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/112984
Other languages
English (en)
French (fr)
Inventor
尹旻
蒲军霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Faw Beijing Software Technology Co Ltd
FAW Group Corp
Original Assignee
Faw Beijing Software Technology Co Ltd
FAW Group Corp
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 Faw Beijing Software Technology Co Ltd, FAW Group Corp filed Critical Faw Beijing Software Technology Co Ltd
Publication of WO2025123745A1 publication Critical patent/WO2025123745A1/zh
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1727Details of free space management performed by the file system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of storage technology, and in particular to a log file storage method, system, electronic equipment and storage medium.
  • the log system is a key basic subsystem of the vehicle computer system.
  • the vehicle computer system is different from other system development, such as PC application development, Web application development, etc., which can be debugged online at any time.
  • the vehicle computer system is mainly developed in the laboratory only in the early development stage. Subsequent development and operation are separated from the development environment. For example, road testing, actual user driving and other scenarios cannot be debugged together, which makes it difficult to locate the problem or restore the problem site when encountering a problem.
  • the system and application logs can provide key information to assist in locating the problem and restoring the phenomenon. Without logs, not only will the development efficiency be greatly reduced, but even the entire development will be difficult to carry out.
  • the log system is a low-level module that is not directly used by end users and has limited system resource usage.
  • the log system is part of the entire vehicle system and will occupy system resources such as CPU, memory, and storage space during operation.
  • system resources such as CPU, memory, and storage space during operation.
  • users since the log system is a "non-functional module", users will not directly perceive it, but it provides support for other system services or applications. This requires the log module to occupy as few system resources as possible, or to work more efficiently under limited system resources.
  • the commonly used solution is to limit the number of log files and the upper limit of the size of a single file, that is, to limit the total size of the space occupied by the log files.
  • the oldest log file in the log file will be overwritten, that is, a circular overwrite strategy.
  • the patent document CN111538704A discloses a log optimization method, device, equipment and storage medium.
  • the log optimization method extracts the attribute characteristics and attribute values of each log in the log file set, classifies them, obtains the attribute set, constructs a tree diagram, and then selects the target attribute characteristics.
  • the attribute value under the target attribute characteristic is abstractly processed to obtain the key summary of the log file set, and replaces the log file set stored in the current system with the key summary. Finally, the key summary is analyzed to improve the efficiency of abnormal diagnosis.
  • the present invention provides a log file storage method, system, electronic device and storage medium.
  • a log file storage method provided for achieving the purpose of the present invention includes:
  • the time information and the log content mark information are optimized to shorten the presentation forms of the time information and the content mark information;
  • the optimized time information and log content marking information are updated and stored in the log file.
  • the defined time optimization rules specifically include:
  • the time information is optimized based on the time difference between the time information.
  • the log content tag is optimized.
  • the time information is optimized based on a defined time optimization rule to shorten the presentation form of the time information, specifically including:
  • the time information of the log is not optimized, and the complete time information is retained;
  • the time information of the next piece is modified according to the difference of the time information to shorten the presentation form of the time information.
  • mapping relationship value exists, modifying the log content mark of the new log to shorten the expression form of the log content mark;
  • mapping relationship value corresponding to the log content mark of the new log is established, and the log content mark of the new log is modified according to the established mapping relationship value to shorten the expression form of the log content mark.
  • the present invention also provides a log file storage system, including:
  • a log file acquisition module configured to acquire the log files contained in the log database in real time in response to the log storage optimization request
  • a log file extraction module configured to extract time information and log content marking information contained in the log file
  • a log file optimization module configured to optimize the time information and the log content tag information based on defined time optimization rules and log content tag optimization rules, so as to shorten the presentation form of the time information and the content tag information;
  • the log file storage module is configured to update and store the optimized time information and log content marking information in the log file.
  • the present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned log file storage method.
  • the present invention also provides a computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the above-mentioned log file storage method.
  • the present invention discloses a log file storage method, system, electronic device and storage medium, which can improve the utilization rate of log storage space, store more valid logs in the same space, and increase the log storage time accordingly, which is beneficial to subsequent system development and debugging and subsequent vehicle operation.
  • FIG1 is a flow chart of a log file storage method in some specific embodiments of the present invention.
  • FIG2 is a schematic diagram of a flow chart of a log file storage method in some applications of the present invention.
  • FIG3 is a flow chart of a log file storage method of the present invention in other applications.
  • FIG4 is a schematic diagram of the structure of a log file storage system in some specific embodiments of the present invention.
  • FIG. 5 is a schematic diagram of the structure of an electronic device in some specific embodiments of the present invention.
  • first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions.
  • the first may be referred to as the second, and similarly, the second may be referred to as the first.
  • a log file storage method includes:
  • time information contained in the log file can be understood as the time string of each log record in the log file
  • log content marking information can be understood as the log tag of each log record in the log file.
  • the time difference between each piece of time information is defined as a time optimization rule, and the corresponding time character string can be replaced by the time difference.
  • the time information is optimized to shorten the expression form of the time information, specifically including determining whether the current log is the first record of the log file; when the log is not the first record of the log file, calculating the difference between the time information of the current log and the time information of the previous log; and modifying the time information of the current log according to the difference of the time information to shorten the expression form of the time information;
  • the time information of the log is not optimized and the complete time information is retained; the difference between the time information of the log and the time information of the next log is calculated; and according to the difference of the time information, the time information of the next log is modified to shorten the expression form of the time information;
  • the time information of the log is used as the basis, the complete time string is retained, and the time information of the next log is calculated, that is, the time difference between the time string of the next log and the time string of the log, and the time string of the next log is modified according to the time difference to shorten the expression of the time information; continuing this step can save a lot of storage space.
  • the log content tag information is optimized to shorten the expression form of the content tag information, specifically including establishing a mapping relationship value corresponding to the log content tag; sequentially saving the mapping relationship values corresponding to the log content tag in the log database; and modifying each of the log content tags corresponding to the mapping relationship values according to the mapping relationship values to shorten the expression form of the log content tag;
  • S104 Update and store the optimized time information and log content mark information in the log file.
  • CompatibilityChangeReporter Compat change id reported: 136219221; UID 1001000; state: DISABLED
  • Log tag is a name set by each log output party according to their needs, such as system service, application, etc., in order to distinguish the log content output by different modules. You can see that the length of this field varies.
  • the log content is real daily development log, with a total of more than 10 million lines. To a certain extent, it is generally representative.
  • Extract the tag of each line of log calculate the length and average value, the result is 12.2, that is, the average tag in each line occupies more than 12 characters (bytes).
  • the average value of the total proportion of tags in all log files is 0.098, which is approximately equal to 10%. If there is a 1G log file, the tag occupies about 100M.
  • the time stamp is of fixed length (26 bytes), and its average proportion in the log file (total number of bytes of the time string ⁇ total log size) is 0.21, which means that more than 20% of the space is occupied by the time string. If there is a 1G log file, more than 200M of space is occupied by the time string.
  • the average ratio of the total space occupied by tags and time strings (the sum of the two) is 0.308. In a 1G log, nearly 1/3 of the space is occupied by the two.
  • the time string is eventually optimized to an integer (time difference), saving adjacent records. That is, 2 bytes (time difference) are used to replace 26 bytes (complete time string).
  • the total number of tags in a system is usually in the thousands (or equivalent order of magnitude). Compared with the total number of logs, which is in the hundreds of millions, the size of the tag mapping file is negligible.
  • the log tag is ultimately optimized to an integer id, through which the corresponding tag name can be retrieved in the tag mapping file to restore the log content. In this way, 12 bytes (tag name) are replaced by 2 bytes (tag id).
  • the log module can easily process and output log content for real-time viewing.
  • Optimization ratio (original length – new length) ⁇ original length
  • the time field optimization saves 92% of the space.
  • more than 200M of the 1G log file is occupied by the time field, which can be optimized to save 184M of space.
  • the log tag field optimization saves 84% of the space.
  • about 100M of space is occupied by the log tag, which can be optimized to save about 84M of space.
  • a 1G log file can save a total of 268M of space through optimization, which is a significant effect.
  • the present invention further provides a log file storage system, comprising:
  • the log file acquisition module 201 is configured to acquire the log files contained in the log database in real time in response to the log storage optimization request;
  • the log file extraction module 202 is configured to extract the time information and log content mark information contained in the log file;
  • the log file optimization module 203 is configured to optimize the time information and the log content tag information based on the defined time optimization rules and log content tag optimization rules to shorten the presentation form of the time information and the content tag information;
  • the log file storage module 204 is configured to update and store the optimized time information and log content mark information in the log file.
  • the log file storage system includes a log file acquisition module 201 , a log file extraction module 202 , a log file optimization module 203 and a log file storage module 204 .
  • the present invention also provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. communication; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the log file storage method.
  • Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
  • the electronic device provided in the embodiment of the present invention includes: one or more processors 710 and a storage device 720; the processor 710 in the electronic device can be one or more, and Figure 5 takes one processor 710 as an example; the storage device 720 is used to store one or more programs; the one or more programs are executed by the one or more processors 710, so that the one or more processors 710 implement the log file storage method as described in any one of the embodiments of the present invention.
  • the processor 710, storage device 720, input device 730 and output device 740 in the electronic device may be connected via a bus or other means, and FIG5 takes the connection via a bus as an example.
  • the storage device 720 in the electronic device is a computer-readable storage medium that can be used to store one or more programs, which can be software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the log file storage method provided in the embodiment of the present invention.
  • the processor 710 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the storage device 720, that is, the log file storage method in the above method embodiment is implemented.
  • the storage device 720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc.
  • the storage device 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device.
  • the storage device 720 may further include a memory remotely arranged relative to the processor 710, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 730 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device.
  • the output device 740 may include a display device such as a display screen.
  • the present invention also provides a computer-readable storage medium storing a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the log file storage method.
  • the computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media.
  • the computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
  • Non-exhaustive list of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种日志文件存储方法、系统、电子设备及存储介质,包括响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;提取所述日志文件包含的时间信息以及日志内容标记信息;基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。通过上述方法可提高日志存储空间利用率,同样空间保存更多有效日志,保存日志时长也相应的增加,有利于后续的系统开发调试以及后续的车辆运营。

Description

一种日志文件存储方法、系统、电子设备及存储介质 技术领域
本发明涉及存储技术领域,特别是涉及一种日志文件存储方法、系统、电子设备及存储介质。
背景技术
日志系统是车机系统上的关键基础子系统。车机系统不同于其他系统开发,比如PC应用开发、Web应用开发等可以随时进行联机调试,车机系统只有在早期开发阶段以实验室开发为主,后续的开发和运营都是和开发环境脱离的,比如:路测、用户实际驾驶等场景,都无法进行联调,这就导致遇到问题时难以定位问题或还原问题现场。这种情况下系统和应用日志可以提供关键信息辅助定位问题、还原现象。如果离开日志,不只开发效率会极大降低,甚至整个开发难以进行。
日志系统是底层模块,最终用户不会直接使用,系统资源使用比较有限。日志系统是整个车机系统的一部分,在运行过程中会占用CPU、内存、存储空间等系统资源,同时由于日志系统是“非功能模块”,用户不会直接感知,而是为其他系统服务或应用提供支持,这就要求日志模块尽量占用少的系统资源,或者在有限的系统资源下,可以更加高效的工作。
现有技术中,普遍采用的方案是为日志文件限定个数和单个文件的大小上限,即限制日志文件占用空间的总大小。当日志内容超出限制是,就会覆盖日志文件中最旧的一个日志文件,即循环覆盖策略。
CN111538704A的专利文件公开了一种日志优化方法、装置、设备及存储介质,该日志优化方法通过提取日志文件集中每条日志的属性特征和属性值,对其进行归类,得到属性集合,构建树状图,然后选取目标属性特征,根据预设的抽象摘要算法对目标属性特征下的属性值进行抽象处理,获得该日志文件集的关键摘要,并以所述关键摘要代替当前系统所存储的所述日志文件集合,最后分析关键摘要可以提高异常诊断的效率。
上述现有技术的方案中存在优化过程繁琐,优化效率较低,不利于系统的开发,还会带来如下问题:
1、给定的日志存储空间,保存更少的日志时长,不以利定位和解决问题。
2、在后续运营中,需要远程抓取车辆日志,还会涉及到日志的网络传输、云端存储、内容自动化分析等。存储低效的日志(重复冗余或无效日志内容),会有占用更大的带宽、更长传输时间、更多的出错概率、更大的云端存储、以及让自动分析效率更低。
3、总体上增大研发、运营的成本,而且会日积月累,不断增加。
4、如果压缩算法动态处理日志,不仅占用资源高(CPU,内存等),而且也无法直接查看日志内容。
因此,如何提供一种日志文件存储方法,提高日志优化效率以及优化效果,是本领域技术人员有待解决的技术问题。
发明内容
为解决现有技术中日志文件存储优化效率较低以及优化效果较差的技术问题,本发明提供一种日志文件存储方法、系统、电子设备及存储介质。
为实现本发明目的提供的一种日志文件存储方法,包括:
响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
提取所述日志文件包含的时间信息以及日志内容标记信息;
基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
在其中一些具体实施例中,所述定义的时间优化规则,具体包括:
基于所述时间信息之间的时间差值,对所述时间信息进行优化。
在其中一些具体实施例中,所述定义的日志内容标记优化规则,具体包括:
建立对应所述日志内容标记的映射关系值;
基于所述映射关系值,对所述日志内容标记进行优化。
在其中一些具体实施例中,基于定义的时间优化规则,对所述时间信息进行优化,以缩短所述时间信息的表现形式,具体包括:
判断当前日志是否为所述日志文件的第一条记录;
当所述日志不是所述日志文件的第一条记录时,计算当前所述日志的所述时间信息与上一条日志的所述时间信息的差值;
依据所述时间信息的差值,对所述当前日志的所述时间信息进行修改,以缩短所述时间信息的表现形式。
在其中一些具体实施例中,当所述日志是所述日志文件的第一条记录时,不对所述日志的时间信息进行优化,保留完整的所述时间信息;
计算所述日志的所述时间信息与下一条日志的所述时间信息的差值;
依据所述时间信息的差值,对所述下一条的所述时间信息进行修改,以缩短所述时间信息的表现形式。
在其中一些具体实施例中,基于定义的日志内容标记优化规则,对所述日志内容标记信息进行优化,以缩短所述内容标记信息的表现形式,具体包括:
建立对应所述日志内容标记的映射关系值;
在所述日志数据库中依次保存与所述日志内容标记对应的映射关系值;
依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式。
在其中一些具体实施例中,依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式后,所述方法还包括:
当接收到新日志时,判断是否存在与所述新日志的日志内容标记对应的所述映射关系值;
当存在所述映射关系值时,修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式;
当不存在所述映射关系值时,建立与所述新日志的日志内容标记对应的所述映射关系值,并依据建立的所述映射关系值修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式。
基于同一构思,本发明还提供一种日志文件存储系统,包括:
日志文件获取模块,配置为响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
日志文件提取模块,配置为提取所述日志文件包含的时间信息以及日志内容标记信息;
日志文件优化模块,配置为基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
日志文件存储模块,配置为将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
基于同一构思,本发明还提供一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;所述存储器中存储有计算机程序,当所述计算机程序被所述处理器执行时,使得所述处理器执行上述日志文件存储方法的步骤。
基于同一构思,本发明还提供一种计算机可读存储介质,其特征在于,其存储有可由电子设备执行的计算机程序,当所述计算机程序在所述电子设备上运行时,使得所述电子设备执行上述日志文件存储方法的步骤。
与现有技术相比,本发明具有以下有益效果:
本发明公开了一种日志文件存储方法、系统、电子设备及存储介质,可提高日志存储空间利用率,同样空间保存更多有效日志,保存日志时长也相应的增加,有利于后续的系统开发调试以及后续的车辆运营。
附图说明
图1是本发明一种日志文件存储方法在一些具体实施例的流程示意图;
图2是本发明一种日志文件存储方法在一些应用中的流程示意图;
图3是本发明一种日志文件存储方法在另一些应用中的流程示意图;
图4是本发明一种日志文件存储系统在一些具体实施例的结构示意图;
图5是本发明一种电子设备在一些具体实施例的结构示意图。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义,“多种”一般包含至少两种。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应当理解,尽管在本申请实施例中可能采用术语第一、第二、第三等来描述,但这些描述不应限于这些术语。这些术语仅用来将描述区分开。例如,在 不脱离本申请实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者装置中还存在另外的相同要素。
特别需要说明的是,在说明书中存在的符号和/或数字,如果在附图说明中未被标记的,均不是附图标记。
参照图1,一种日志文件存储方法,包括:
S101,响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
具体的,在此步骤中,当接收到日志存储优化请求时,实时获取日志数据库中包含的日志文件;
可以理解的是,日志数据库中包含了多个日志文件,同时日志文件也在源源不断的进入到日志数据库中,此步骤当接收到日志存储优化请求时,对各日志文件以及新进入的日志文件进行实时获取,日志存储优化请求也可更改为常开状态,这样日志数据库将实时进行优化。
S102,提取所述日志文件包含的时间信息以及日志内容标记信息;
具体的,在步骤中,在获取的各日志文件中,提取各日志文件包含的时间信息以及日志内容标记信息;
可以理解的是,日志文件包含的时间信息,可理解为日志文件中每一条日志记录的时间字符串,日志内容标记信息,可理解为日志文件中每一条日志记录的日志tag,从获取的日志文件中,提取其中包含的时间字符串以及日志tag。
S103,基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
具体的,在此步骤中,首先定义时间优化规则以及日志内容标记优化规则,接着根据定义的时间优化规则以及日志内容标记优化规则,对时间信息以及日志内容标记信息进行优化,以缩短时间信息以及内容标记信息的表现形式;
可以理解的是,定义的时间优化规则以及日志内容标记优化规则,对应优化的是日志文件中包含的时间信息以及内容标记信息,优化的目的是缩短时间信息以及内容标记信息的表现形式,可理解为缩短时间字符串以及日志tag。
在其中一些应用中,所述定义的时间优化规则,具体包括基于所述时间信息之间的时间差值,对所述时间信息进行优化;
可以理解的是,在此应用中,将各时间信息之间的是时间差定义为时间优化规则,可通过时间差替换相应的时间字符串。
进一步的,在此应用中,基于定义的时间优化规则,对所述时间信息进行优化,以缩短所述时间信息的表现形式,具体包括判断当前日志是否为所述日志文件的第一条记录;当所述日志不是所述日志文件的第一条记录时,计算当前所述日志的所述时间信息与上一条日志的所述时间信息的差值;依据所述时间信息的差值,对所述当前日志的所述时间信息进行修改,以缩短所述时间信息的表现形式;
可以理解的是,在此应用中首先判断当前的日志是否是日志文件的第一条记录,当日志不是日志文件的第一条记录时,表示至少还存在此记录的上一条记录,计算这两条记录的时间信息差值,即时间字符串的时间差值,通过时间 字符串的时间差值,修改此条记录的时间信息,即修改此条记录的时间字符串为时间差值,以此缩短时间信息的表现形式,优化了存储空间,持续此环节则可节约大量的存储空间。
进一步的,在此应用中,当所述日志是所述日志文件的第一条记录时,不对所述日志的时间信息进行优化,保留完整的所述时间信息;计算所述日志的所述时间信息与下一条日志的所述时间信息的差值;依据所述时间信息的差值,对所述下一条的所述时间信息进行修改,以缩短所述时间信息的表现形式;
可以理解的是,当日志是日志文件的第一条记录时,此时以该日志的时间信息为准,保留完整时间字符串,计算下一条日志的时间信息,即下一条日志的时间字符串与该日志的时间字符串的时间差值,并依据该时间差值修改此下一条日志的时间字符串,以缩短所述时间信息的表现形式;持续此环节则可节约大量的存储空间。
在另一些应用中,所述定义的日志内容标记优化规则,具体包括建立对应所述日志内容标记的映射关系值;基于所述映射关系值,对所述日志内容标记进行优化;
可以理解的是,在此应用中,建立对应日志内容标记的映射关系值,根据映射关系值即可替换相应的日志内容标记。
进一步的,基于定义的日志内容标记优化规则,对所述日志内容标记信息进行优化,以缩短所述内容标记信息的表现形式,具体包括建立对应所述日志内容标记的映射关系值;在所述日志数据库中依次保存与所述日志内容标记对应的映射关系值;依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式;
可以理解的是,建立对应日志内容标记的映射关系值,将各映射关系值依次存在日志数据库中,通过查找对应日志内容标记进行替换,从而缩短日志内容标记的表现形式。
进一步的,依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式后,所述方法还包括当接收到新日志时,判断是否存在与所述新日志的日志内容标记对应的所述映射关系值;当存在所述映射关系值时,修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式;当不存在所述映射关系值时,建立与所述新日志的日志内容标记对应的所述映射关系值,并依据建立的所述映射关系值修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式。
可以理解的是,为了避免新进入的日志占用过多的存储空间,当接收到新日志时,需要判断是否存在与新日志的日志内容标记对应的映射关系值,当存在时进行相应的修改,当不存在时,进行对应的创建,通过上述优化步骤,可最大化的节约存储空间。
S104,将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
可以理解的是,通过上述步骤可提高日志存储空间利用率,同样空间保存更多有效日志,保存日志时长也相应的增加,有利于后续的系统开发调试以及后续的车辆运营。
下面将结合图2和图3说明本发明日志文件存储方法在一些应用中的实施例:
为了便于说明问题,参考以下日志内容:
(2023-07-04 05:07:44.877852 529 2829I ActivityManager:calcYSize:unsupported or RGB color format,RGBA8888_UBWC(-1040187392)
2023-07-04 05:07:44.879030 3112 4878I ComAdapterService:queryBinder+code is 32binder is h.a.a.e.n@15334
2023-07-04 05:07:44.880555 1020 2607D CompatibilityChangeReporter:Compat change id reported:136219221;UID 1001000;state:DISABLED
2023-07-04 05:09:11.979622 5788 10328I VehicleStateBinder:mAdapterManager.getLowBeamHeight
2023-07-04 05:09:11.979694 5788 10328I Proxy_CarVehicleStateManager:getLowBeamHeight
2023-07-04 05:09:11.980545 3112 8876I VehicleSDK_CarVehicleStateManagerProxy:getLowBeamHeight
上述日志为标准Android日志格式,每行是一条记录,每条记录用空格分隔的多个字段,从左到右依次为:时间、进程号、线程号、日志等级、日志内容(日志内容开头冒号之前是日志标记[也叫日志tag])。
第一个字段是时间,例如:2023-07-04 05:07:44.877852,含义:2023年7月4日,5时7分44秒877852微秒。相邻2个日志记录之间的实际间隔很短,一般都在毫秒、甚至微秒级别。这个字段长度固定,为26个字节。
日志tag,是各个日志输出方根据需要自己设置的名称,比如系统服务、应用等,以便区分不同模块输出的日志内容。可以看到这个字段长度大小不等。
在上述日志中,可以直观的看到时间字段和日志tag字段,在每行日志中占了不小的比重。
为了更好的理解实际情况,对实际的系统日志进行了统计分析,下表是统计结果:

说明:
日志内容是日常真实开发日志,总共超过1000万行。在一定程度上,具有普遍代表性。
提取每行日志的tag,计算长度和平均值,结果为12.2,即平均每行中tag占12个字符(字节)以上。在所有日志文件中tag总共占比均值(所有tag总字节数÷日志总大小)为0.098,约等于10%。如果有1G的日志文件,其中tag约占用了100M。
时间标记是固定长度(26个字节),在日志文件中占比均值(时间字符串总字节数÷日志总大小)为0.21,即超过20%空间被时间字符串占用,如果有1G日志文件,超过200M空间被时间字符串占用。
Tag和时间字符串总共占用的空间比例(二者求和)均值为0.308,在1G日志中有近1/3的空间是被二者占用的。
下面说明优化方案:
如图2所示,对时间字符串的优化:
时间字符串的特点是每行时间都不同(有少量重复的),相邻时间差值很小。
每条日志记录不保存完整的时间字符串,只保存当前记录上和条记录的时间差,使用一个整数保存时间差。可根据需要(不同系统日志保存的频次)选择不同位数的整数类型,例如2字节、4字节、8字节等。
每个日志文件,第一行记录需要保存完整时间记录。后续日志时间,可在此基础上计算获得。
每个文件都会保存自身日志时间(第一行),保证每个日志文件可以独立使用,及时其他日志文件删除、丢失、损坏也不会收到影响。
如图3所示,对日志tag的优化:
日志tag的特点是:tag总数相对有限(一个系统中通常只有几千个tag),一个tag可能会多次重复出现。
保存一个tag映射文件,文件中保存:tag名称,tag id(一个整数id),最近更新时间。
日志记录过程中,把tag映射文件读入内容,可进行高效的读写。通过哈希算计检索tag并获取tag id。哈希算法的时间复杂度为O(1),对运行效率几乎没有影响。
日志文件中不保存tag名称,只保存tag id。每条新增日志从tag映射文件中检索获得对应的tag id。一个tag id占2个字节,一个tag名称平均长度超过12个字节,这样用2个字节的id替换掉12个字节长的名称进行保存。
在还原日志内容时,通过日志映射文件查询到id对应的tag名称。
当一个tag超过一定的时长(可以设置固定时长,或者根据当前保存日志的最早时间),删除未使用的tag,保证tag映射文件不会占用过大空间,仅保存对当前日志有效的tag信息。
优化效果分析:
时间字符串优化:
每个日志文件只有第一条记录保存完整时间。日志文件总数比较少,一般不超过100个,和成百上千万行的日志总量相比,每个文件第一行时间字符串所占空间可忽略。时间字符串最终优化为一个整数(时间差值),保存临近记 录之间的差值。即用2个字节(时间差)替代了26个字节(完整的时间字符串)。
日志Tag优化:
一个系统中的tag总数通常在几千个(或同等数量级),和成百上千万日志总量比,tag映射文件的大小可忽略。日志tag最终优化为一个整数id,通过这个id可以在tag映射文件中检索到对应的tag名称,用于还原日志内容。这样就用2个字节(tag id)替换了12个字节(tag名称)。
性能和便利性
未使用复杂的压缩算法,在实时处理日志时,不会对系统性能带来负担。由于算法的精细处理,几乎没有带来性能负担。
提高存储效率的同时,日志模块可以方便的处理和输出日志内容,便于实时查看。
下表总结了日志存储空间优化的效果:

注:优化比例=(原长度–新长度)÷原长度
通过优化算法,时间字段优化节省了92%的空间,在上述例子中,1G日志文件中有超过200M被时间字段占用,可优化节省出184M的空间。日志Tag字段优化节省84%的空间,在上述例子中有约100M空间被日志Tag占用,可优化节省约84M空间。整体上,1G日志文件,通过优化总共可节省空间月268M空间,效果明显。
对于上述实施例公开的方法步骤,出于简单描述的目的将方法步骤表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或 者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
如图4所示,本发明还提供一种日志文件存储系统,包括:
日志文件获取模块201,配置为响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
日志文件提取模块202,配置为提取所述日志文件包含的时间信息以及日志内容标记信息;
日志文件优化模块203,配置为基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
日志文件存储模块204,配置为将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
具体的,本实施例提供的日志文件存储系统,包括日志文件获取模块201、日志文件提取模块202、日志文件优化模块203以及日志文件存储模块204。
值得注意的是,虽然在本发明实施例中只披露了一些基本功能模块,但并不意味着本系统的组成仅仅局限于上述基本功能模块,相反,本实施例所要表达的意思是:在上述基本功能模块的基础之上本领域技术人员可以结合现有技术任意添加一个或多个功能模块,形成无穷多个实施例或技术方案,也就是说本系统是开放式而非封闭式的,不能因为本实施例仅仅披露了个别基本功能模块,就认为本发明权利要求的保护范围局限于所公开的基本功能模块。同时,为了描述的方便,描述以上装置时以功能分为各种单元、模块分别描述。当然在实施本发明时可以把各单元、模块的功能在同一个或多个软件和/或硬件中实现。
如图5所示,本发明还提供一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间 的通信;所述存储器中存储有计算机程序,当所述计算机程序被所述处理器执行时,使得所述处理器执行日志文件存储方法的步骤。
图5是本发明实施例提供的一种电子设备的结构示意图。如图5所示结构,本发明实施例中提供的电子设备包括:一个或多个处理器710和存储装置720;该电子设备中的处理器710可以是一个或多个,图5中以一个处理器710为例;存储装置720用于存储一个或多个程序;所述一个或多个程序被所述一个或多个处理器710执行,使得所述一个或多个处理器710实现如本发明实施例中任一项所述的日志文件存储方法。
该电子设备还可以包括:输入装置730和输出装置740。
该电子设备中的处理器710、存储装置720、输入装置730和输出装置740可以通过总线或其他方式连接,图5中以通过总线连接为例。
该电子设备中的存储装置720作为一种计算机可读存储介质,可用于存储一个或多个程序,所述程序可以是软件程序、计算机可执行程序以及模块,如本发明实施例中所提供的日志文件存储方法对应的程序指令/模块。处理器710通过运行存储在存储装置720中的软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例中日志文件存储方法。
存储装置720可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储装置720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储装置720可进一步包括相对于处理器710远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置730可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置740可包括显示屏等显示设备。
本发明还提供一种计算机可读存储介质,其存储有可由电子设备执行的计算机程序,当所述计算机程序在所述电子设备上运行时,使得所述电子设备执行日志文件存储方法的步骤。
具体的,本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (10)

  1. 一种日志文件存储方法,其特征在于,包括:
    响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
    提取所述日志文件包含的时间信息以及日志内容标记信息;
    基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
    将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
  2. 根据权利要求1所述的日志文件存储方法,其特征在于,所述定义的时间优化规则,具体包括:
    基于所述时间信息之间的时间差值,对所述时间信息进行优化。
  3. 根据权利要求1所述的日志文件存储方法,其特征在于,所述定义的日志内容标记优化规则,具体包括:
    建立对应所述日志内容标记的映射关系值;
    基于所述映射关系值,对所述日志内容标记进行优化。
  4. 根据权利要求2所述的日志文件存储方法,其特征在于,基于定义的时间优化规则,对所述时间信息进行优化,以缩短所述时间信息的表现形式,具体包括:
    判断当前日志是否为所述日志文件的第一条记录;
    当所述日志不是所述日志文件的第一条记录时,计算当前所述日志的所述时间信息与上一条日志的所述时间信息的差值;
    依据所述时间信息的差值,对所述当前日志的所述时间信息进行修改,以缩短所述时间信息的表现形式。
  5. 根据权利要求4所述的日志文件存储方法,其特征在于,当所述日志是所述日志文件的第一条记录时,不对所述日志的时间信息进行优化,保留完整的所述时间信息;
    计算所述日志的所述时间信息与下一条日志的所述时间信息的差值;
    依据所述时间信息的差值,对所述下一条的所述时间信息进行修改,以缩短所述时间信息的表现形式。
  6. 根据权利要求3所述的日志文件存储方法,其特征在于,基于定义的日志内容标记优化规则,对所述日志内容标记信息进行优化,以缩短所述内容标记信息的表现形式,具体包括:
    建立对应所述日志内容标记的映射关系值;
    在所述日志数据库中依次保存与所述日志内容标记对应的映射关系值;
    依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式。
  7. 根据权利要求6所述的日志文件存储方法,其特征在于,依据所述各映射关系值,修改与所述各映射关系值对应的各所诉日志内容标记,以缩短所述日志内容标记的表现形式后,所述方法还包括:
    当接收到新日志时,判断是否存在与所述新日志的日志内容标记对应的所述映射关系值;
    当存在所述映射关系值时,修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式;
    当不存在所述映射关系值时,建立与所述新日志的日志内容标记对应的所述映射关系值,并依据建立的所述映射关系值修改所述新日志的日志内容标记,以缩短所述日志内容标记的表现形式。
  8. 一种日志文件存储系统,其特征在于,包括:
    日志文件获取模块,配置为响应于日志存储优化请求,实时获取日志数据库中包含的日志文件;
    日志文件提取模块,配置为提取所述日志文件包含的时间信息以及日志内容标记信息;
    日志文件优化模块,配置为基于定义的时间优化规则以及日志内容标记优化规则,对所述时间信息以及所述日志内容标记信息进行优化,以缩短所述时间信息以及所述内容标记信息的表现形式;
    日志文件存储模块,配置为将所述优化后的时间信息以及日志内容标记信息在所述日志文件中进行更新存储。
  9. 一种电子设备,其特征在于,包括:处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;所述存储器中存储有计算机程序,当所述计算机程序被所述处理器执行时,使得所述处理器执行权利要求1至7中任一项所述方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,其存储有可由电子设备执行的计算机程序,当所述计算机程序在所述电子设备上运行时,使得所述电子设备执行权利要求1至7中任一项所述方法的步骤。
PCT/CN2024/112984 2023-12-13 2024-08-19 一种日志文件存储方法、系统、电子设备及存储介质 Pending WO2025123745A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311709368.0A CN117909309A (zh) 2023-12-13 2023-12-13 一种日志文件存储方法、系统、电子设备及存储介质
CN202311709368.0 2023-12-13

Publications (1)

Publication Number Publication Date
WO2025123745A1 true WO2025123745A1 (zh) 2025-06-19

Family

ID=90684311

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/112984 Pending WO2025123745A1 (zh) 2023-12-13 2024-08-19 一种日志文件存储方法、系统、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN117909309A (zh)
WO (1) WO2025123745A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117909309A (zh) * 2023-12-13 2024-04-19 中国第一汽车股份有限公司 一种日志文件存储方法、系统、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130111451A1 (en) * 2011-10-31 2013-05-02 International Business Machines Corporation Program Log Record Optimization
CN111881012A (zh) * 2020-08-10 2020-11-03 深圳大势智能科技有限公司 一种日志记录方法、装置、设备及存储介质
CN114860678A (zh) * 2022-05-10 2022-08-05 浙江工业大学 一种基于存储结构的日志数据压缩方法
CN117909309A (zh) * 2023-12-13 2024-04-19 中国第一汽车股份有限公司 一种日志文件存储方法、系统、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130111451A1 (en) * 2011-10-31 2013-05-02 International Business Machines Corporation Program Log Record Optimization
CN111881012A (zh) * 2020-08-10 2020-11-03 深圳大势智能科技有限公司 一种日志记录方法、装置、设备及存储介质
CN114860678A (zh) * 2022-05-10 2022-08-05 浙江工业大学 一种基于存储结构的日志数据压缩方法
CN117909309A (zh) * 2023-12-13 2024-04-19 中国第一汽车股份有限公司 一种日志文件存储方法、系统、电子设备及存储介质

Also Published As

Publication number Publication date
CN117909309A (zh) 2024-04-19

Similar Documents

Publication Publication Date Title
CN110569214B (zh) 用于日志文件的索引构建方法、装置及电子设备
US20130173655A1 (en) Selective fetching of search results
CN110851136A (zh) 数据获取方法、装置、电子设备及存储介质
CN108255735B (zh) 关联环境测试方法、电子装置及计算机可读存储介质
CN112084179B (zh) 一种数据处理的方法、装置、设备及存储介质
CN105872731A (zh) 数据处理的方法和装置
WO2025123745A1 (zh) 一种日志文件存储方法、系统、电子设备及存储介质
CN114117289A (zh) 浏览器运行数据的获取方法、装置及电子设备
TWI814337B (zh) 業務流程管理系統及其方法
CN110222046B (zh) 列表数据的处理方法、装置、服务器和存储介质
CN116155597A (zh) 访问请求的处理方法、装置及计算机设备
CN116126808A (zh) 行为日志记录方法、装置、计算机设备和存储介质
CN113641632B (zh) 一种命令行提取日志数据转图形展示的方法
JPWO2020065778A1 (ja) 情報処理装置、制御方法、及びプログラム
CN118170430B (zh) 一种调用链路的处理方法、装置、设备及存储介质
CN116389420B (zh) 电力终端设备指纹生成方法、装置、电子设备及存储介质
CN111782588A (zh) 一种文件读取方法、装置、设备和介质
CN118626135A (zh) 文件处理方法、装置、计算机设备和存储介质
CN118069613A (zh) 一种日志存储方法、装置、电子设备及存储介质
CN117668908A (zh) 数据脱敏方法、装置、电子设备及存储介质
US8775528B2 (en) Computer readable recording medium storing linking keyword automatically extracting program, linking keyword automatically extracting method and apparatus
CN115878914A (zh) 一种域名匹配方法、装置、设备及存储介质
CN114238270A (zh) 数据库操作方法、装置、计算机设备及可读存储介质
CN118502773B (zh) 一种提升云管平台实时响应性能的方法及装置
CN116955869B (zh) 新闻链接的提取方法及装置、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24902171

Country of ref document: EP

Kind code of ref document: A1