Comments (5)
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.
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.
Thinking about it, perhaps I could create artificial data to condition the templates?
from drain3.
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.
Thank you
from drain3.
Related Issues (20)
- specify a log file HOT 1
- Saving log template/cluster and ID for each log HOT 2
- Error parsing logs: "ZeroDivisionError: float division by zero" HOT 4
- Restrictions on matching mode HOT 2
- About parameter `full_search_strategy` in drain match method HOT 12
- Windows regular expression HOT 1
- Drain3 deprecation warning with pip install command. HOT 2
- visualize drain parse tree (feature) HOT 1
- Hi, I've been trying to use drain for running log anomaly detection on some logs.
- Log Matching on new data HOT 2
- Chinese and English hybrid log template mining HOT 5
- Some DRAIN templates with <*> do not have parameters extracted HOT 7
- PermissionError when running with Persistance
- Is it possible to freeze templates when trainning? HOT 2
- Add a py.typed marker file
- `extra_delimiters` does not account for prefixed/suffixed delimiters
- Drain3 in golang HOT 2
- Masking Prefix and Suffix should not be escaped HOT 1
- A interesting issues. HOT 1
- big_file demo result's first cluster content is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drain3.