goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

Can you develop a log-format automatic recognition function?

Open rocklei123 opened this issue 2 years ago • 5 comments

hello, I think everyone's problems are basically due to the log-format format problem, which makes it impossible to analyze. It would be great if you could provide a way to automatically identify the log-format by reading the first 10 lines of logs or upload a conf file to output the log-format! At present, the second tool seems to be available, but it only supports nginx, for example, apache does not support it. Reference: https://github.com/stockrt/nginx2goaccess Thank you so much!

rocklei123 avatar Dec 17 '23 14:12 rocklei123

This sounds fantastic! Do you have any ideas or insights you can share on how this should function for the various log formats available? I'd love to hear them! Thanks

allinurl avatar Feb 10 '24 00:02 allinurl

Hello everybody.

In my (not so humble) opinion it is almost impossible. Why? If a number 100 appears, which field would it be? Bytes sent, Response time? What if it's 300? HTTP Return Code?

It would only be possible for usual fields, basically text, such as UserAgent, URI, Cookie, etc.

Maybe OK... if you test into all LOGS type formats that GOACCESS support...

0bi-w6n-K3nobi avatar Apr 20 '24 21:04 0bi-w6n-K3nobi