Context
/platform/logging.alauda.io/v2/logs/context
getLog Context
Retrieve log context with authentication.
Parameters
cluster(in query):stringrequiredName of the cluster.
logIndex(in query):stringrequiredName of the log index (ES index or CK table name).
logId(in query):stringrequiredLog ID.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
direction(in query):stringContext direction. Either 'before' or 'after'.
Response
200object: Successful log context responseProperties:items:[]LogEntry
LogEntry
time:numberTime of the log entry.
node:stringName of the node.
podName:stringName of the pod.
podId:stringIdentifier of the pod.
logData:stringLog data as a JSON string.
logLevel:stringSeverity level of the log.
containerName:stringName of the container.
cluster:stringName of the cluster.
containerId:stringIdentifier of the container.
containerId8:stringShortened container identifier.
@timestamp:stringTimestamp in string format.
namespace:stringNamespace of the log.
project:stringProject associated with the log.
path:stringLog path.
logId:stringUnique identifier of the log.
logType:stringType of the log.
logIndex:stringIndex name for the log.
component:stringComponent related to the log.
product:stringProduct name associated with the log.
workload:stringWorkload details.
/platform/logging.alauda.io/v2/clusters/{cluster}/logs/context
getLog Context by Cluster
Retrieve log context by cluster with authentication.
Parameters
cluster(in path):stringrequiredName of the cluster.
logIndex(in query):stringrequiredName of the log index (ES index or CK table name).
logId(in query):stringrequiredLog ID.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
direction(in query):stringContext direction. Either 'before' or 'after'.
Response
200object: Successful log context responseProperties:items:[]LogEntry
LogEntry
time:numberTime of the log entry.
node:stringName of the node.
podName:stringName of the pod.
podId:stringIdentifier of the pod.
logData:stringLog data as a JSON string.
logLevel:stringSeverity level of the log.
containerName:stringName of the container.
cluster:stringName of the cluster.
containerId:stringIdentifier of the container.
containerId8:stringShortened container identifier.
@timestamp:stringTimestamp in string format.
namespace:stringNamespace of the log.
project:stringProject associated with the log.
path:stringLog path.
logId:stringUnique identifier of the log.
logType:stringType of the log.
logIndex:stringIndex name for the log.
component:stringComponent related to the log.
product:stringProduct name associated with the log.
workload:stringWorkload details.
/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/context
getLog Context by Project, Cluster and Namespace
Retrieve log context within a specific project, cluster, and namespace with authentication.
Parameters
project(in path):stringrequiredName of the project.
cluster(in path):stringrequiredName of the cluster.
namespace(in path):stringrequiredName of the namespace.
logIndex(in query):stringrequiredName of the log index (ES index or CK table name).
logId(in query):stringrequiredLog ID.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
direction(in query):stringContext direction. Either 'before' or 'after'.
Response
200object: Successful log context responseProperties:items:[]LogEntry
LogEntry
time:numberTime of the log entry.
node:stringName of the node.
podName:stringName of the pod.
podId:stringIdentifier of the pod.
logData:stringLog data as a JSON string.
logLevel:stringSeverity level of the log.
containerName:stringName of the container.
cluster:stringName of the cluster.
containerId:stringIdentifier of the container.
containerId8:stringShortened container identifier.
@timestamp:stringTimestamp in string format.
namespace:stringNamespace of the log.
project:stringProject associated with the log.
path:stringLog path.
logId:stringUnique identifier of the log.
logType:stringType of the log.
logIndex:stringIndex name for the log.
component:stringComponent related to the log.
product:stringProduct name associated with the log.
workload:stringWorkload details.