EP-4736008-A1 - SYSTEM AND METHOD FOR SUPPRESSING REPETITIVE LOGS IN REAL-TIME
Abstract
The present disclosure provides a system (108) and a method (300) to suppress repetitive entry of logs in a file in real-time. A processing engine (208) receives a request from at least one source to perform an entry of a new log line in the file. A recording engine (212) extracts at least one log line from the file, and maintains a log-map using plurality of attributes corresponding to the extracted log line. The recording engine further performs attribute mapping of the received new log line with the maintained log-map. An update engine (214) determines whether the attributes corresponding to the received new log line already exists in the log map maintained by the recording engine (212) based on the attribute mapping. The update engine (214) writes the new received log line on determining that the attributes corresponding to the received new log line do not exist in the log-map.
Inventors
- BHATNAGAR, AAYUSH
- Shetty, Mukta
- Jha, Alok
- KUMAR, SANJEEV
- Jadhav, Sayali
- NARAYAN, Gaurav
- ANJALI, Kunuguntla
- Patidar, Chetan
Assignees
- Jio Platforms Limited
Dates
- Publication Date
- 20260506
- Application Date
- 20240607
Claims (18)
- 1. A system (108) for suppressing entry of repetitive log lines in a file in real-time, the system (108) comprises: a processing engine (208) configured to receive a request from at least one source for performing entry of a new log line in the file, wherein the request includes the new log line; a recording engine (212) configured to, extract at least one log line from the file; maintain a log-map having a plurality of attributes corresponding to the extracted at least one log line; perform an attribute mapping of the received new log line with the maintained log-map; and an update engine (214) configured to, determine whether attributes corresponding to the received new log line already exists in the log map maintained by the recording engine (212) based on the attribute mapping: responsive to determining that the attributes corresponding to the received new log line exists in the log map, skip writing the new received log line in the file.
- 2. The system (108) as claimed in claim 1, wherein responsive to determining that the attributes corresponding to the received new log line do not exist in the log map, the new received log line is written in the file.
- 3. The system (108) as claimed in claim 1, wherein the plurality of attributes includes an identifier, a count value, a start time, and an end time.
- 4. The system (108) as claimed in claim 1, wherein the recording engine (212) is configured to clear the log-map when the count value is equal to a threshold value.
- 5. The system (108) as claimed in claim 1, wherein an interface(s) (206) is configured to display the log-map and the file.
- 6. The system (108) as claimed in claim 1, wherein a scheduler is configured to run at a configurable time interval.
- 7. The system (108) as claimed in claim 1, wherein the scheduler is configured to write map data in the log-map and clear the map data from a memory once the schedular run.
- 8. The system (108) as claimed in claim 1, the at least one source includes at least a user (102) or an application.
- 9. A method (300) of suppressing entry of a repetitive log line in a file in realtime, the method (300) comprising: receiving (302), by a processing engine (208), a request from a at least one source for performing entry of a new log line in the file, wherein the request includes the new log line; extracting (304), by a recording engine (212), at least one log line from the file; maintaining (306), by the recording engine (212), a log-map having a plurality of attributes corresponding to the at least one extracted log line; performing (308), by the recording engine (212), an attribute mapping of the received new log line with the maintained log-map; and determining (310), by an update engine (214), whether the attributes corresponding to the received new log line already exists in the log map maintained by the recording engine (212) based on the attribute mapping: responsive to determining that the attributes corresponding to the received new log line exists in the log map, skip writing the new received log line in the file.
- 10. The method (300) as claimed in claim 9, wherein, responsive to determining that the attributes corresponding to the received new log line do not exist in the log map, the new received log line is written in the file.
- 11. The method (300) as claimed in claim 9, wherein the plurality of attributes includes an identifier, a count value, a start time, and an end time.
- 12. The method (300) as claimed in claim 9, the recording engine (212) is configured to clear the log-map when the count value is equal to a threshold value.
- 13. The method (300) as claimed in claim 9, wherein an interface(s) (206) is configured to display the log-map and the suppressed file.
- 14. The method (300) as claimed in claim 9, wherein a scheduler is configured to run at a configurable time interval.
- 15. The method (300) as claimed in claim 9, the scheduler is configured to write map data in the log-map and clear the map data from a memory once the schedular run.
- 16. The method (300) as claimed in claim 9, wherein the at least one source includes at least a user (102) or an application.
- 17. A user equipment (104) communicatively coupled with a network (106), the coupling comprises steps of: receiving, by a processing engine (208), a request from at least one source for performing entry of a new log line in the file, wherein the request includes the new log line; extracting, by a recording engine (212), a plurality of log lines from the file; maintaining, by the recording engine (212), a log-map having a plurality of attributes corresponding to each of the plurality of extracted log lines; performing, by the recording engine (212), an attribute mapping of the received new log line with the maintained log-map; and determining, by an update engine (214), whether the attributes corresponding to the received new log line already exists in the log map maintained by the recording engine (212) based on the attribute mapping: responsive to determining that the new received log line exists in the log map, skip writing the new received log line in the file.
- 18. A computer program product comprising a non-transitory computer-readable medium comprising instructions that, when executed by one or more processors, cause the one or more processors to: receive, by a processing engine (208), a request from a at least one source for performing entry of a new log line in the file, wherein the request includes the new log line; extract, by a recording engine (212), a plurality of log lines from the file; maintain, by the recording engine (212), a log-map having a plurality of attributes corresponding to each of the plurality of extracted log lines; perform, by the recording engine (212), an attribute mapping of the received new log line with the maintained log-map; and determine, by an update engine (214), whether the received new log line already exists in the log map maintained by the recording engine (212) based on the attribute mapping: responsive to determining that the new received log line exists in the log map, skip writing the new received log line in the file, and update the plurality of attributes corresponding to the existing file in the log-map; and responsive to determining that the new received log line does not exist in the log-map, write the new received log line in the file.
Description
SYSTEM AND METHOD FOR SUPPRESSING REPETITIVE LOGS IN REAL-TIME RESERVATION OF RIGHTS [0001] A portion of the disclosure of this patent document contains material, which is subject to intellectual property rights such as, but are not limited to, copyright, design, trademark, integrated circuit (IC) layout design, and/or trade dress protection, belonging to Jio Platforms Limited (JPL) or its affiliates (herein after referred as owner). The owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all rights whatsoever. All rights to such intellectual property are fully reserved by the owner. TECHNICAL FIELD [0002] The present disclosure relates to a field of Policy Control Function (PCF) in a wireless network, and specifically to a system and a method for suppressing repetitive logs i.e., logs writing of same log lines in a file to avoid expensive file write operation in real-time. DEFINITION [0003] The following description of related art is intended to provide background information pertaining to the field of the disclosure. This section may include certain aspects of the art that may be related to various features of the present disclosure. However, it should be appreciated that this section be used only to enhance the understanding of the reader with respect to the present disclosure, and not as admissions of prior art. [0004] The expression ‘Policy Control Function (PCF)’ used hereinafter in the specification refers to how data travels within the network, ensuring efficient use of resources and providing a secure and customized experience for users. The PCF determines policies based on SPR (Subscriber Profile Repository) and PC-Ids (Policy Counter Identities). These policies define criteria for handling different types of data traffic based on various factors. [0005] These definitions are in addition to those expressed in the art. BACKGROUND [0006] The following description of related art is intended to provide background information pertaining to the field of the disclosure. This section may include certain aspects of the art that may be related to various features of the present disclosure. However, it should be appreciated that this section be used only to enhance the understanding of the reader with respect to the present disclosure, and not as admissions of prior art. [0007] In general, Policy Control Function (PCF) in a wireless network provides following functions: policy rules for application and service data flow detection, gating, Quality of Service (QoS), and flow-based charging to a Session Management Function (SMF). Access and Mobility Management related policies to an Access and Mobility Management Function (AMF). Service configurations, policy configurations and session viewer appear underneath. [0008] In conventional methods and systems, log analysis in PCF becomes difficult when a particular log line starts printing in an application log file. Failure repeatedly occurs due to a network communication failure. If the log is left unconditionally, a large amount of the same log information is stored in a log area, and there is a problem of obtaining information that triggers the failure. [0009] Therefore, there is a need in the art to suppress logs writing of same log lines in a file to avoid expensive file write operation by overcoming the deficiencies of the prior art. OBJECTS OF THE PRESENT DISCLOSURE [0010] It is an object of the present disclosure to provide a system to suppress entry of repetitive logs in real-time. [0011] It is an object of the present disclosure to suppress the writing of the same log lines in a file to avoid expensive file write operations. [0012] It is an object of the present disclosure to ease operations team efforts to debug logs. [0013] It is an object of the present disclosure to capture occurrence of a specific log line along with its start time and end time at one place. SUMMARY [0014] The present disclosure discloses a system for suppressing repetitive entry of log lines in a file in real-time. A processing engine is configured to receive a request from at least one source for performing entry of a new log line in the file, wherein the request includes the new log line. A recording engine is configured to extract at least one log line from the file, maintain a log-map having a plurality of attributes corresponding to the extracted log line, perform an attribute mapping of the received new log line with the maintained log-map and an update engine is configured to determine whether the received new log line or attributes corresponding to the received new log line already exists in the log map maintained by the recording engine based on the attribute mapping, responsive to determining that the new received log line or the attributes corresponding to the received new log line exist in the log map, skip writin