Aggregation
/platform/logging.alauda.io/v2/logs/aggregation
getLog Aggregation
Aggregate logs into buckets for chart display with authentication.
Parameters
buckets(in query):integerNumber of buckets for aggregation. Default is 30.
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
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 aggregation responseProperties:buckets:[]Bucket
Bucket
time:numbercount:integer
/platform/logging.alauda.io/v2/clusters/{cluster}/logs/aggregation
getLog Aggregation by Cluster
Aggregate logs by cluster into buckets with authentication.
Parameters
cluster(in path):stringrequiredName of the cluster.
buckets(in query):integerNumber of buckets for aggregation. Default is 30.
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
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 aggregation responseProperties:buckets:[]Bucket
Bucket
time:numbercount:integer
/platform/logging.alauda.io/v2/projects/{project}/clusters/{cluster}/namespaces/{namespace}/logs/aggregation
getLog Aggregation by Project, Cluster and Namespace
Aggregate logs within a specific project, cluster, and namespace into buckets with authentication.
Parameters
project(in path):stringrequiredName of the project.
cluster(in path):stringrequiredName of the cluster.
namespace(in path):stringrequiredName of the namespace.
buckets(in query):integerNumber of buckets for aggregation. Default is 30.
start(in query):numberrequiredStart time of the time range.
end(in query):numberrequiredEnd time of the time range.
logType(in query):stringType of log. Options: system, platform, kubernetes, workload. Default is workload.
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 aggregation responseProperties:buckets:[]Bucket
Bucket
time:numbercount:integer