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

log_format_name error #13

Open
xinjing201610 opened this issue Dec 29, 2021 · 0 comments
Open

log_format_name error #13

xinjing201610 opened this issue Dec 29, 2021 · 0 comments

Comments

@xinjing201610
Copy link

在配置完成启动后,发现日志报错数据解析错误,提示检查client配置中的日志格式名称是否和log_foramt_name一致,我nginx配置默认日志名称为main,log_format_name 设置也为main,请问试什么问题?

pid : 12795 数据解析错误: ('解析日志失败,请检查client 配置中 日志的 格式名称是否一致 log_format_name',) 数据: {"node_id": "server_80", "app_name": "web1", "log_format_name": "main", "line": "192.168.191.4 - [29/Dec/2021:10:50:40 +0800] \"GET / HTTP/1.1\" 304 0 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36\" \"-\"", "log_format_str": "$remote_addr $remote_user [$time_local] \"$request\" '\n '$status $body_bytes_sent \"$http_referer\" '\n '\"$http_user_agent\" \"$http_x_forwarded_for\"", "log_format_vars": "$remote_addr<@>$remote_user<@>$time_local<@>$request<@>$status<@>$body_bytes_sent<@>$http_referer<@>$http_user_agent<@>$http_x_forwarded_for"}

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

1 participant