Giter Site home page Giter Site logo

Comments (6)

davidohana avatar davidohana commented on July 21, 2024

Hello,

This question is better asked at the original Drain repo: https://github.com/logpai/logparser/issues
However, I can tell from my experience that:

  • Simple and well-defined constructs like IP are better masked with regex before passing to Drain (use masking feature of drain3 for that)
  • Drain might have difficulties with multiple-words variables like cmd. You might try to mask those too.
  • The user variable ion your example should be de-templated without a problem.

from drain3.

vikramriyer avatar vikramriyer commented on July 21, 2024

Thanks for answering and pointing me to the original repo, David. However, just a follow-up, I did not quite grasp what you meant by multuple-words variables.

from drain3.

davidohana avatar davidohana commented on July 21, 2024

I meant variables that can hold multiple words, or a sentence, like cmd in your example

from drain3.

vikramriyer avatar vikramriyer commented on July 21, 2024

Awesome, thanks. So should I assume that the pattern for the word user was correctly identified because it's an English dictionary valid word?

from drain3.

davidohana avatar davidohana commented on July 21, 2024

No, no relation to a dictionary, just because it's a single word.

from drain3.

vikramriyer avatar vikramriyer commented on July 21, 2024

Got it! Thanks for patiently answering David.

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.