View your logfiles in visidata automagically! #1566
Replies: 1 comment 3 replies
-
Hi @haydenflinner thank you for sharing this. Recently I have been examining log files, and have wondered how to extract templates with parameters. This looks like it could help. I tried out your demo script, and it was able to parse a local Linux syslog file with the parameters in your script. It generated templates that looked like Do you know if there is a way to generate a template that includes the constant part of the message? Even if there are more templates generated? It looked like they had generated some templates like that in https://github.com/logpai/logparser/blob/master/logs/Linux/Linux_2k.log_templates.csv or is that intended as input? |
Beta Was this translation helpful? Give feedback.
-
Based upon this paper (maybe free link?), this tool (save it to
drain.py
and try running it) should do a serviceable job with default config of turning your logfiles into processable tables. There are knobs to tweak to add 'domain knowledge' as the authors of the paper put it.Example with a ZooKeeper log with 10 seconds of domain knowledge applied (I've never seen a zookeeper log before now)
Beta Was this translation helpful? Give feedback.
All reactions