logpai / Drain3

A robust streaming log template miner based on the Drain algorithm
Other
450 stars 130 forks source link

specify a log file #61

Closed EtafHadda closed 2 years ago

EtafHadda commented 2 years ago

thanks for all this effort

sorry about this simple question. I need to put a file from my system to be mined. how can I do that? I need to know how can I put options like (file, sim_th and max_clusters )

thanks a lot

davidohana commented 2 years ago

This example demonstrates working with input log files. Basically, you create a TemplateMiner instance. You can pass a config object in the constructor with the options you need, e.g:

config = TemplateMinerConfig()
config.drain_sim_th = 0.3

Then you read the log file line-by-line and feed it to the template miner using add_log_message().