Skip to content

Instantly share code, notes, and snippets.

@luzfcb
Created April 12, 2023 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luzfcb/199120842d1f360d5f88c4e2695bcb8c to your computer and use it in GitHub Desktop.
Save luzfcb/199120842d1f360d5f88c4e2695bcb8c to your computer and use it in GitHub Desktop.
{
"level": "error",
"ts": 1681323702.2472997,
"logger": "http.log.access.log0",
"msg": "handled request",
"request": {
"remote_ip": "xxx.xxx.xxx.xxx",
"remote_port": "4438",
"proto": "HTTP/3.0",
"method": "GET",
"host": "mygooddomain.com.br",
"uri": "/pages/my-subpath",
"headers": {
"Accept-Encoding": [
"gzip, deflate, br"
],
"Accept-Language": [
"en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7,zh;q=0.6,de;q=0.5"
],
"User-Agent": [
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
],
"Sec-Fetch-Dest": [
"document"
],
"Sec-Ch-Ua": [
"\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\""
],
"Sec-Ch-Ua-Mobile": [
"?0"
],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
],
"Sec-Fetch-User": [
"?1"
],
"Cookie": [],
"Cache-Control": [
"max-age=0"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Site": [
"none"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Sec-Ch-Ua-Platform": [
"\"Linux\""
]
},
"tls": {
"resumed": true,
"version": 772,
"cipher_suite": 4865,
"proto": "h3",
"server_name": "mygooddomain.com.br"
}
},
"user_id": "",
"duration": 0.043443324,
"size": 0,
"status": 502,
"resp_headers": {
"Server": [
"Caddy"
]
}
}
{
"level": "error",
"ts": 1681323702.2472465,
"logger": "http.log.error.log0",
"msg": "invalid request :path \"my-subpath\"",
"request": {
"remote_ip": "xxx.xxx.xxx.xxx",
"remote_port": "4438",
"proto": "HTTP/3.0",
"method": "GET",
"host": "mygooddomain.com.br",
"uri": "/pages/my-subpath",
"headers": {
"Sec-Fetch-Dest": [
"document"
],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
],
"Sec-Fetch-User": [
"?1"
],
"Cookie": [],
"Cache-Control": [
"max-age=0"
],
"Sec-Ch-Ua": [
"\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\""
],
"Sec-Ch-Ua-Mobile": [
"?0"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Sec-Ch-Ua-Platform": [
"\"Linux\""
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Site": [
"none"
],
"User-Agent": [
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
],
"Accept-Encoding": [
"gzip, deflate, br"
],
"Accept-Language": [
"en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7,zh;q=0.6,de;q=0.5"
]
},
"tls": {
"resumed": true,
"version": 772,
"cipher_suite": 4865,
"proto": "h3",
"server_name": "mygooddomain.com.br"
}
},
"duration": 0.043443324,
"status": 502,
"err_id": "syuh2jq5e",
"err_trace": "reverseproxy.statusError (reverseproxy.go:1299)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment