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

access log 和 error log 的采集 #1926

Open
hgh4236 opened this issue Mar 19, 2025 · 3 comments
Open

access log 和 error log 的采集 #1926

hgh4236 opened this issue Mar 19, 2025 · 3 comments

Comments

@hgh4236
Copy link

hgh4236 commented Mar 19, 2025

请问higress的access log 和 error log 的采集现在是什么方式,是以json的格式采集到文件中的吗?

@CH3CHO
Copy link
Collaborator

CH3CHO commented Mar 19, 2025

是可以的。你可以参考 Helm Chart 里开启 global.o11y.enabled 之后的实现方式。

@hgh4236
Copy link
Author

hgh4236 commented Mar 19, 2025

hiress当前有没有采集error log,类似于当前的access.log可以采集到一个文件中:

Image

@cr7258
Copy link
Collaborator

cr7258 commented Mar 21, 2025

我的理解是 higress controller 和 Higress gateway 默认都会把 error 日志输出到 stderr,所以你直接 kubectl logs 就能看到,accessLog 指的是请求的详细记录(比如 ip, path, status code),提供 accessLogFile 参数是允许你将它输出到其他文件,避免也混在 stdout 影响你看 controller 和 gateway 的运行日志

所以我理解你正常 收 stdout 和 stderr 的日志就 ok 了,里面会包含 error 日志

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

No branches or pull requests

3 participants