An example to use it for any log file.
See original GitHub issueHi, Thanks for making such an amazing project.
I have trying to use it for my log files. I could parse log files to its equivalent csv files using Logparser by LogPAI, but I have no idea how to convert logs to sequence of number as you have in you ~/data/hdfs/ directory. Also, then how to use it for inference real time log file.
Could please you help me with it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (7 by maintainers)
Top Results From Across the Web
Example log file - IBM
This log file was created using a LogLevel of 511. Lines with numbers displayed like 1 are annotations that are described following the...
Read more >Log file - definition & overview - Sumo Logic
A log file is a computer-generated data file that contains information about usage patterns, activities, and operations within an operating system, application, ...
Read more >Log Files: Definition, Types, and Importance | CrowdStrike
Log files are a historical record of everything and anything that happens within a system, including events such as transactions, errors and ...
Read more >Log File: Definition, Types, Who Uses, Challenges and More
Log file analysis can be used to restrict access to a certain resource. Using the information in the log files, you can figure...
Read more >Definition, utilities and examples of use of log file in computer ...
the chronological recording of the operations as they are performed; the file or database on which these recordings are stored. The simplest log,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I will update the code and documentation on how to generate the sequence of number in the next few days.It will include two methods which depends on your own logs: Time sliding window and hard disk ID sequence window.
Thanks alot for sharing your expertise.
I’ve gone through your code, I get your idea as (I am putting minute details so that it could be helpful to someone in future.)
_structured.csvand_template.csvfile using drain from logpai._structured.csvfrom step 2._structured.csvand_template.csvfile using drain will not make any sense as randomly generatedevent_idwill be completely different for an event from generatedevent_idfor same event from the log file used for training. So, you proposedstructure_bgl.py, using which I can generateevent_idfor completely new logs based on theevent_idof the logs used for training using the generatedevent_template. Further,sample_bgl.pywill convert the structured log into sequence of event_id which can further be replaced by its equivalent integer and thus testing can be performed.Could I figured it out correctly?
Please feel free to correct me if I failed to describe your approach.
Thanks for your time.