Giter Site home page Giter Site logo

Comments (5)

davidohana avatar davidohana commented on July 21, 2024

If you manually edit templates, there might be inconsistency with the prefix tree, and results of further parsing calls may produce unpredicted results.

from drain3.

KemptCode avatar KemptCode commented on July 21, 2024

Got it...
I don't think I'd need to add templates after that point in my project.
What if I'm mostly trying to rid the templates of specific information?

e.g.
User="TheBoogieMan"
To become
User="<*>"

In this instance, I only have data for one user, but I would like it to apply to any user.

And, I'd like to use the .match() method provided (or something similar) to identify what category it would fit in or find if we've seen anything like it previously. I'm trying to identify rare events.

A friend suggested using .get_parameter_list() to compare each until we found the parameters. The time it takes isn't ideal but it works (with the exception of templates without masking). I take it that the speed of the .match() method is attributed to this tree you speak of? I see it relies on tree_search.

Any tips?

from drain3.

KemptCode avatar KemptCode commented on July 21, 2024

Thinking about it, perhaps I could create artificial data to condition the templates?

from drain3.

davidohana avatar davidohana commented on July 21, 2024

The match function indeed uses the prefix tree and that's why it fast. If you change log clusters without adjusting the prefix tree it might not work properly. I agree that the "safest" thing can be artificially injecting logs to teach Drain to generalize stuff. For example:

User="dummy"

In the case you shown.

from drain3.

KemptCode avatar KemptCode commented on July 21, 2024

Thank you

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.