Search
/platform/logging.alauda.io/v2/logs/search
getLog Search
Search logs with authentication.
Parameters
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
page(in query):integerrequiredPage number for the query results.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
ascending(in query):booleanSort order. Default is false (descending).
cluster(in query):stringrequiredName of the cluster.
logType(in query):stringType of log. Options: system, platform, kubernetes, workload. Default is workload.
projects(in query):stringProject names for application logs, comma separated.
namespaces(in query):stringNamespace names for application logs, comma separated.
workloads(in query):stringWorkload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.
podNames(in query):stringPod names, comma separated.
containerNames(in query):stringContainer names, comma separated.
nodes(in query):stringNode names, comma separated.
paths(in query):stringPath names, comma separated.
products(in query):stringProduct names for product logs, comma separated.
components(in query):stringComponent names for product logs or Kubernetes logs, comma separated.
query(in query):stringQuery keywords, supports AND, OR, and escape with backslash.
Response
200object: Successful log search 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/search
getLog Search by Cluster
Search logs by cluster with authentication.
Parameters
cluster(in path):stringrequiredName of the cluster.
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
page(in query):integerrequiredPage number for the query results.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
ascending(in query):booleanSort order. Default is false (descending).
logType(in query):stringType of log. Options: system, platform, kubernetes, workload. Default is workload.
projects(in query):stringProject names for application logs, comma separated.
namespaces(in query):stringNamespace names for application logs, comma separated.
workloads(in query):stringWorkload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.
podNames(in query):stringPod names, comma separated.
containerNames(in query):stringContainer names, comma separated.
nodes(in query):stringNode names, comma separated.
paths(in query):stringPath names, comma separated.
products(in query):stringProduct names for product logs, comma separated.
components(in query):stringComponent names for product logs or Kubernetes logs, comma separated.
query(in query):stringQuery keywords, supports AND, OR, and escape with backslash.
Response
200object: Successful log search 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/search
getLog Search by Project, Cluster and Namespace
Search logs 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.
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
page(in query):integerrequiredPage number for the query results.
pageSize(in query):integerNumber of records per page. For export, 0 means export all.
ascending(in query):booleanSort order. Default is false (descending).
logType(in query):stringType of log. Options: system, platform, kubernetes, workload. Default is workload.
projects(in query):stringProject names for application logs, comma separated.
workloads(in query):stringWorkload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.
podNames(in query):stringPod names, comma separated.
containerNames(in query):stringContainer names, comma separated.
namespaces(in query):stringNamespace names for application logs, comma separated.
nodes(in query):stringNode names, comma separated.
paths(in query):stringPath names, comma separated.
products(in query):stringProduct names for product logs, comma separated.
components(in query):stringComponent names for product logs or Kubernetes logs, comma separated.
query(in query):stringQuery keywords, supports AND, OR, and escape with backslash.
Response
200object: Successful log search 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.