Get function logs
Function as a Service
Get function logs
Retrieve execution logs for a specific function. Logs can be filtered by time range and limit.
GET
Get function logs
Documentation Index
Fetch the complete documentation index at: https://gcore-doc-1046.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Path Parameters
Project ID
Example:
1
Region ID
Example:
1
Namespace name
Pattern:
^[a-z][-a-z0-9]{0,24}[a-z0-9]$Example:
"namespace-name"
Function name
Pattern:
^[a-z][-a-z0-9]{0,24}[a-z0-9]$Example:
"function-name"
Query Parameters
Limit the number of logs lines
Required range:
1 <= x <= 100000Example:
10
Response
200 - application/json
OK
Function logs.
Example:
[
{
"Message": " 2022/03/02 15:04:03 192.168.171.79:41386 \"GET / HTTP/1.1\" 200 python-requests/2.25.1",
"Pod": "function-78-5f5ddf5454-n6s94",
"Time": "2022-03-02T15:04:03.208677349Z"
},
{
"Message": " 2022/03/02 15:04:05 192.168.171.79:41386 \"GET / HTTP/1.1\" 200 python-requests/2.25.1",
"Pod": "function-78-5f5ddf5454-n6s94",
"Time": "2022-03-02T15:04:05.208677349Z"
}
]