Skip to content

AbdullahDibas/LogsAnalyzer

Repository files navigation

LogsAnalyzer

Logs Analyzer provides the ability to filter and analyze logs and in a way that doesn't affect the original application nor the original logs. The analyzer can be run in one of two ways; the first one as an extension to your application's logger and in the same app domain as your application, and the other one in a separate process isolated from your application.

The library becomes more helpful in cases where the logs are huge and crowded and so hard to read. The library supports multiple ways for filtering and analyzing the logs in addition to support reporting the output of the analyzer processes in different forms and ways that suit the type of results.

Logs Filters:

Sometimes it's helpful to report only part of the logs which are related to a specific feature or service. Logs Analyzer gives the user the ability to identify a log message by specifying the filters on the log's fields that match this log. The filters can be on log message, level, tags, specific parameters.

NOTE: the analyzer accepts to have optional fields with each log message like Tags (list of tags names) and Params (list of parameters as key value pairs).

Logs Analyzer Rules:

The library also supports applying analysis methods on the incoming logs. The following are the supported rules:

  • Absence Detection Rule: triggers an output if a specific log is not received within a configured interval in seconds.
  • Aggregate Function Rule: triggers an output when a specific log is received along with a value calculated from a specific parameter passed with the log and using the configured aggregate funciton.
  • Anti Sequence Rule:
  • Duplicate Detection Rule: triggers an output when a specific log is received twice.
  • Filters Rule: here only the configured filters are applied to the received logs without applying any analytic process.
  • Frequency Rule: triggers an output when a specific log is received alnog with a value indicating the new calculated value of the frequency at which this log is being received.
  • Sequence Detection Rule:
  • Time Difference Rule: triggers an output after each time a specific log is received along with the interval in seconds between the new one and the previous one.

Logs Outputs:

Each analyzer's rule (process) can be associated with a separate output reporting. The analyzer supports the following output methods:

  • Text, CSV, and HTML files.
  • Windows Popup Messages.
  • Emails.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published