EP-4740102-A1 - METHOD AND SYSTEM FOR SUPPRESSING REPETITIVE LOG ENTRIES
Abstract
The present disclosure relates to a method and a system for suppressing repetitive log entries The disclosure encompasses receiving, a one or more log entries; determining whether the one or more log entries is pre-stored in a log map, based at least on a method call; updating, upon determining that the one or more log entries are pre-stored in the log map, pre-stored log details associated with the one or more log entries; and adding, upon determining that the log entry is not pre-stored in the log map, the one or more log entries in the log map.
Inventors
- Shetty, Mukta
- BHATNAGAR, AAYUSH
- BHASKAR, ALOK
- KUMAR, SANJEEV
- NARAYAN, Gaurav
- Patidar, Chetan
- ANJALI, Kunuguntla
- Jadhav, Sayali
Assignees
- Jio Platforms Limited
Dates
- Publication Date
- 20260513
- Application Date
- 20240612
Claims (12)
- 1. A method [400] for suppressing repetitive log entries, the method [400] comprising: receiving, by a transceiver unit [301], one or more log entries; determining, by a determining unit [302], whether the one or more log entries are prestored in a log map, based at least on a method call; - updating, upon determining that the one or more log entries are pre-stored in the log map, by an updating unit [303], pre-stored log details associated with the pre-stored log entries; and adding, upon determining that the one or more log entries are not pre-stored in the log map, by an addition unit [304], the one or more log entries in the log map.
- 2. The method [400] as claimed in claim 1, wherein the log map comprises a mapping of the one or more log entries and their corresponding log details, wherein the corresponding log details comprise at least one of count, start time, and end time.
- 3. The method [400] as claimed in claim 1, further comprising: - periodically writing, by an analysis unit [305], data of the log map in a log fde in a mode; and deleting, by the analysis unit [305], log mapping entries from a memory [300m] when a predetermined count threshold is reached.
- 4. The method [400] as claimed in claim 3, further comprising writing, by the analysis unit [305], data of the log map in the log fde with corresponding set of timestamps and counts, wherein the set of timestamps indicating time when the data of the log map was written in the log fde, wherein the counts indicate number of times the data of the log map was written in the log fde.
- 5. The method [400] as claimed in claim 4, further comprising rendering, by a display unit [306], an interface on a user device [300u] to enable a user to write data of the log map to the log fde.
- 6. A system [300] for suppressing repetitive log entries, said system [300] comprising: a transceiver unit [301] configured to receive one or more log entries; a determining unit [302] connected at least to the transceiver unit [301 ], the determining unit [302] configured to determine whether the one or more log entries are pre-stored in a log map, based at least on a method call; an updating unit [303] connected at least to the determining unit [302], the updating unit [303] configured to, upon determining that the one or more log entries are prestored in the log map, update pre-stored log details associated with the pre-stored log entries; and an addition unit [304] connected at least to the updating unit [303], the addition unit [304] configured to, upon determining that the log entries are not pre-stored in the log map, add the one or more log entries in the log map.
- 7. The system [300] as claimed in claim 6, wherein the log map comprises a mapping of the one or more log entries and their corresponding log details, wherein the corresponding log details comprise at least one of count, start time, and end time.
- 8. The system [300] as claimed in claim 6, wherein an analysis unit [305] is configured to: - periodically write data of the log map to a log file in a mode; and delete log mapping entries from a memory [300m] when a predetermined count threshold is reached.
- 9. The system [300] as claimed in claim 8, wherein the analysis unit [305] is configured to write data of the log map in the log file with corresponding set of timestamps and counts, wherein the set of timestamps indicating time when the data of the log map was written in the log file, wherein the counts indicate number of times the data of the log map was written in the log file.
- 10. The system [300] as claimed in claim 9, wherein a display unit [306] is configured to render an interface on a user device [300u] to enable a user to write data of the log map to the log file.
- 11. A user equipment (UE) for suppressing repetitive log entries, said UE comprising: o a transceiver unit [301] configured to transmit one or more log entries; o a determining unit [302] connected at least to the transceiver unit [301], the determining unit [302] configured to determine whether the one or more log entries are pre-stored in a log map, based at least on a method call; o an updating unit [303] connected at least to the determining unit [302], the updating unit [303] configured to, upon determining that the one or more log entries are pre-stored in the log map, update pre-stored log details associated with the one or more log entries; and o an addition unit [304] connected at least to the updating unit [303], the addition unit [304] configured to, upon determining that the one or more log entries are not pre-stored in the log map, add the one or more log entries in the log map.
- 12. A non-transitory computer-readable storage medium storing instruction for suppressing repetitive log entries, the storage medium comprising executable code which, when executed by one or more units of a system, causes: a transceiver unit [301] to receive one or more log entries; a determining unit of the system [300] to determine whether the one or more log entries are pre-stored in a log map, based at least on a method call; an updating unit [303] connected at least to the transceiver unit [301], the updating unit [303] to update, upon determining that the one or more log entries are pre-stored in the log map, pre-stored log details associated with the one or more log entries; and an addition unit [304] connected at least to the updating unit [303], the addition unit [304], to add, upon determining that the one or more log entries are not pre-stored in the log map, the one or more log entries in the log map.
Description
METHOD AND SYSTEM FOR SUPPRESSING REPETITIVE LOG ENTRIES TECHNICAL FIELD [0001] Embodiments of the present disclosure generally relate to network performance management systems. More particularly, embodiments of the present disclosure relate to suppressing repetitive log entries. BACKGROUND [0002] The following description of the 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 is used only to enhance the understanding of the reader with respect to the present disclosure, and not as admissions of the prior art. [0003] Extensive Input/output operations due to massive log writing in files results in high CPU usage and slows down the application’s performance. Also, log analysis becomes difficult when any log line starts printing multiple times in the application log file. [0004] Further, over a period of time, various solutions have been developed to optimize log updation and analysis. However, there are certain challenges with existing solutions. In the existing solutions, logs analysis becomes difficult when any log line starts printing multiple times in the application log file. Also, for extensive Input/output operations due to massive log writing in files results in high CPU usage and slows down the application’s performance. [0005] Thus, there exists an imperative need in the art to suppress repetitive logs, which the present disclosure aims to address. SUMMARY [0006] This section is provided to introduce certain aspects of the present disclosure in a simplified form that are further described below in the detailed description. This summary is not intended to identify the key features or the scope of the claimed subject matter. [0007] An aspect of the present disclosure may relate to a method for suppressing repetitive log entries. The method comprises receiving, by a transceiver unit, a one or more log entries. The method further comprises determining, by a determining unit, whether the one or more log entries is pre-stored in a log map, based at least on a method call. The method further comprises updating, upon determining that the one or more log entries is pre-stored in the log map, updating, by an updating unit, pre-stored log details associated with the one or more log entries. And, the method further comprises adding, upon determining that the log entry is not pre-stored in the log map, adding, by an addition unit [304], the one or more log entries in the log map. [0008] In an exemplary aspect of the present disclosure, in the disclosed method, the log map comprises a mapping of the one or more log entries and their corresponding log details. It is to be noted that the corresponding log details comprise at least one of count, start time, and end time. [0009] In an exemplary aspect of the present disclosure, the method further comprises periodically writing, by an analysis unit, data of the log map to a log fde in a mode. The method further comprises deleting, by the analysis unit, log mapping entries from a memory when a predetermined count threshold is reached. [0010] In an exemplary aspect of the present disclosure, the method further comprises writing, by the analysis unit, data of the log map to the log fde with corresponding set of timestamps and counts. [0011] In an exemplary aspect of the present disclosure, the method further comprises rendering, by a display unit, an interface on a user device to enable a user to write data of the log map to the log fde. [0012] Another aspect of the present disclosure may relate to a system for suppressing repetitive log entries. The system comprises a transceiver unit configured to receive one or more log entries. The system further comprises a determining unit configured to determine whether the one or more log entries are pre-stored in a log map, based at least on a method call. The system further comprises an updating unit configured to, upon determining that the one or more log entries are pre-stored in the log map, update pre-stored log details associated with the one or more log entries. And the system further comprises an addition unit configured to, upon determining that the one or more log entries is not pre-stored in the log map, add the one or more log entries in the log map. [0013] Yet another aspect of the present disclosure may relate to a non-transitory computer-readable storage medium storing instructions for suppressing repetitive log entries, the instructions include executable code which, when executed by a one or more units of a system, causes: a transceiver unit to receive one or more log entries; a determining unit of the system to determine whether the one or more log entries are pre-stored in a log map, based at least on a method call; an updating unit, upon determining that the one or more log entries ar