Replies: 1 comment 1 reply
-
@martin-helmich any help is appreciated. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello All, need a bit of advise.
Having issue Parsing :
error while parsing line '127.0.0.1 - - [12/May/2022:20:21:01 +0000] "POST /test HTTP/1.1" 200 26 "-" "PostmanRuntime/7.29.0" "11.1.1.1 rt=0.037 uct="0.014" uht="0.037" urt="0.037"': text log parsing err: access log line '127.0.0.1 - - [12/May/2022:20:21:01 +0000] "POST /test HTTP/1.1" 200 26 "-" "PostmanRuntime/7.29.0" "1.1.1.1 "rt=0.037 uct="0.014" uht="0.037" urt="0.037"' does not match given format '^(?P<remote_addr>[^ ]) - (?P<remote_user>[^ ]) [(?P<time_local>[^]])] "(?P[^"])" (?P[^ ]) (?P<body_bytes_sent>[^ ]) "(?P<http_referer>[^"])" "(?P<http_user_agent>[^"])" "(?P<http_x_forwarded_for>[^"])" rt="(?P<request_time>[^"])" uct="(?P<upstream_connect_time>[^"])" uht="(?P<upstream_header_time>[^"])" urt="(?P<upstream_response_time>[^"]*)"'
Nginx Config :
log_format upstream_time '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$http_x_forwarded_for"'
'rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"';
Exporter Config :
format = "$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" rt="$request_time" uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time""
Not sure what's the issue here, any help is very much appreciated.
Thanks
Kri
Beta Was this translation helpful? Give feedback.
All reactions