US 12,393,502 B2
Method, device, and computer program product for processing logs
Changxu Jiang, Chengdu (CN); Shuang Zheng, Chengdu (CN); Bo Hu, Chengdu (CN); and Ling Yan, Chengdu (CN)
Assigned to Dell Products L.P., Round Rock, TX (US)
Filed by Dell Products L.P., Round Rock, TX (US)
Filed on Jun. 29, 2023, as Appl. No. 18/343,838.
Claims priority of application No. 202310673334.4 (CN), filed on Jun. 7, 2023.
Prior Publication US 2024/0411665 A1, Dec. 12, 2024
Int. Cl. G06F 11/34 (2006.01); G06F 11/30 (2006.01)
CPC G06F 11/3476 (2013.01) [G06F 11/3086 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for processing logs, comprising:
determining, in a processor-based system and based on a duration of a predetermined number of log entries recently recorded by a log recording component, a target log recording component from a group of candidate log recording components, the candidate log recording components each comprising at least one of a hardware system and a software system associated with the processor-based system and configured to record log entries as corresponding operations are performed by the hardware system and/or the software system;
determining, in the processor-based system and based on a predetermined number of log entries recently recorded by the target log recording component, a log group comprising a plurality of similar log entries;
determining, in the processor-based system, a duplicate content among the plurality of log entries in the log group and a distinctive content for each of the plurality of log entries; and
updating, in the processor-based system, the plurality of log entries by de-duplicating the duplicate content and retaining the distinctive content for each of the plurality of log entries;
wherein determining the target log recording component from the group of candidate log recording components comprises:
selecting one candidate log recording component from the group of candidate log recording components;
acquiring a predetermined number of log entries recently recorded by the candidate log recording component;
determining a duration of a time period corresponding to the predetermined number of log entries; and
determining, if determining that the duration is smaller than or equal to a threshold duration, the candidate log recording component as the target log recording component; and
wherein updating the plurality of log entries comprises:
automatically triggering a component log merge event responsive to the determining of the candidate log recording component as the target log recording component; and
executing a similarity check and merge algorithm on one or more hardware processors of the processor-based system responsive to the automatic triggering of the component log merge event, wherein the similarity check and merge algorithm is configured to adaptively delete repeated contents of respective portions of the plurality of log entries in the log group utilizing at least first and second distinct group processing commands executed by the one or more hardware processors.