3 ms·
On a tangent, I've been looking into log parsing for an application I'm building recently. If you want to support pulling info out of common logs it's pretty s
by eatonphil 5y ago
On a tangent, I've been looking into log parsing for an application I'm building recently.
If you want to support pulling info out of common logs it's pretty simple to pull together a list of regexes for the default log format in each major system. Simple example here: https://github.com/multiprocessio/datastation/blob/master/shared/text.ts#L13 https://github.com/multiprocessio/datastation/blob/master/sh....
I use this in the app to be able to quickly pull info out of access logs for further analysis a la OP's app and GoAccess but in a GUI where you can also do further processing.
Demo video of this here: https://www.youtube.com/watch?v=sCx2mF2jyUQ&t=9s https://www.youtube.com/watch?v=sCx2mF2jyUQ&t=9s.
- linuxdude314 5y agoYou can find a very comprehensive list of regex patterns looking at the logstash’s grok definitions: https://github.com/logstash-plugins/logstash-patterns-core/tree/master/patterns/ecs-v1 https://github.com/logstash-plugins/logstash-patterns-core/t...