Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you develop a log-format automatic recognition function? #2595

Open
rocklei123 opened this issue Dec 17, 2023 · 2 comments
Open

Can you develop a log-format automatic recognition function? #2595

rocklei123 opened this issue Dec 17, 2023 · 2 comments

Comments

@rocklei123
Copy link

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!

@allinurl
Copy link
Owner

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

@0bi-w6n-K3nobi
Copy link
Contributor

0bi-w6n-K3nobi commented Apr 20, 2024

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants