Get all logs
Get all the logs of a session from its underlying container. We’ll send both STDOUT and STDERR. This is useful to get secure access to debug server-related issues.
Unlike /logs, this doesn’t stream new logs from the container. Once you get all the logs, the underlying connection closes.
{ "tab": "examples", "url": "https://api.gameye.io/query/log", "name": "Get logs", "method": "GET", "request": { "pathParameters": [], "queryParameters": [], "headerParameters": [], "bodyDataParameters": [ { "kind": "required", "name": "matchKey", "type": "string", "description": "The unique ID of the session to get the logs ." } ], "formDataParameters": [] }, "results": { "languages": [ { "id": "57qATxq0wL5oPzsO1sz9s", "code": "// Logs of the specified session have been retrieved.\n \n{}", "language": "200", "customLabel": "" }, { "id": "7lzqvxHD5vD1mz3T057aF", "code": "// You are not authorized to fetch logs. Please make sure that the included bearer \ntoken is correct.\n ", "language": "401", "customLabel": "" }, { "id": "RisVsLWK-9h1AcO8FG-5q", "code": "// Could not find the associated session.", "language": "404", "customLabel": "" } ], "selectedLanguageId": "57qATxq0wL5oPzsO1sz9s" }, "examples": { "languages": [ { "id": "DUUV_Zi2ue0_xvzpGqAjw", "code": "curl --location --request GET 'https://api.gameye.io/query/log?matchKey=string' \\\n--header 'Accept: application/json'", "language": "curl", "customLabel": "" }, { "id": "5BVQ8w5NwmyIij0cCmJlv", "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\n\nvar requestOptions = {\n method: 'GET',\n headers: myHeaders,\n redirect: 'follow'\n};\n\nfetch(\"https://api.gameye.io/query/log?matchKey=string\", requestOptions)\n .then(response => response.text())\n .then(result => console.log(result))\n .catch(error => console.log('error', error));", "language": "javascript", "customLabel": "" }, { "id": "9C1-SP6_gUZEA3hx74Y3-", "code": "import requests\n\nurl = \"https://api.gameye.io/query/log?matchKey=string\"\n\npayload={}\nheaders = {\n 'Accept': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n", "language": "python", "customLabel": "" }, { "id": "jm8jO8GSC8eDj6MqV3VHe", "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.gameye.io/query/log?matchKey=string\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body", "language": "ruby", "customLabel": "" } ], "selectedLanguageId": "jm8jO8GSC8eDj6MqV3VHe" }, "description": "", "currentNewParameter": { "label": "Body Parameter", "value": "bodyDataParameters" }}