Giter Site home page Giter Site logo

Comments (3)

davidohana avatar davidohana commented on July 21, 2024

Can you give an example for what you try to achieve?

from drain3.

V0id01 avatar V0id01 commented on July 21, 2024

I am working on a log anomaly detection project based on Deep Learning.
The training set is created by parsing corpus of log sequences. Based on that training set, a model creates vocabulary - a set of known log templates.
After training phase, model moves on to anomaly detection phase. Logs are provided in an online, streaming fashion. Based on previous logs, model starts to predict which log templates are most probable to occur, which makes it possible to evaluate if incoming log (after going through Drain) should be treated as anomaly.

The point is that the vocabulary, after training phase, should have constant size. By executing add_log_template on incoming logs, the number of clusters might increase, which could spoil anomaly detection.

A possible solution is to create a new cluster containing wildcard template (template = '<*>'), so that every log that will not be assigned to any other cluster will be assigned to the wildcard one.

from drain3.

davidohana avatar davidohana commented on July 21, 2024

Few options:

  1. Just add logs to Drain as usual, but after reaching n clusters, ignore the returned cluster-ID and use some constant ID
  2. After reaching n clusters, stop ingesting to Drain and build some regex-rules based on Drain templates, and use those instead.
  3. Modify Drain (send a PR) - add a configuration of max_clusters and in add_log_message() if no match for an existing cluster + cluster count reached limit, return the fallback cluster.

from drain3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.