Read the log lines of one request (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines"
payload = { "request_id": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({request_id: '<string>'})
};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"request_id": "<string>"
}
'{
"provider": "<string>",
"source": "<string>",
"note": "<string>",
"cluster_attribution": {},
"start": "<string>",
"end": "<string>",
"kept_days": 123,
"state": "found",
"matched_by": "text",
"request_id": "<string>",
"id_field": "<string>",
"count": 123,
"count_exact": true,
"lines": [
{
"timestamp": "<string>",
"line": "<string>",
"labels": {},
"record": {}
}
],
"lines_shown_limit": 123,
"searched_lines": 123,
"other_lines": 123
}Clusters
Read the log lines of one request (browser session)
Session-authenticated. The lines of one request: a search for its id in the window (at most 24 hours), kept where the line names the id as its request, oldest first. count says how many there are, exact only when the search read every line holding the id and each holds it in its text, and a floor otherwise; a search that found none answers not_countable, never 0. Requires kubernetes.logs on this cluster.
POST
/
org
/
clusters
/
imported
/
{cluster_id}
/
logs
/
request-lines
Read the log lines of one request (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines"
payload = { "request_id": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({request_id: '<string>'})
};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/logs/request-lines \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"request_id": "<string>"
}
'{
"provider": "<string>",
"source": "<string>",
"note": "<string>",
"cluster_attribution": {},
"start": "<string>",
"end": "<string>",
"kept_days": 123,
"state": "found",
"matched_by": "text",
"request_id": "<string>",
"id_field": "<string>",
"count": 123,
"count_exact": true,
"lines": [
{
"timestamp": "<string>",
"line": "<string>",
"labels": {},
"record": {}
}
],
"lines_shown_limit": 123,
"searched_lines": 123,
"other_lines": 123
}Authorizations
Body
application/json
Response
The request's lines