Search

/platform/logging.alauda.io/v2/logs/search

Search logs with authentication.

Parameters

  • start(in query): numberrequired

    Start time of the time range.

  • end(in query): numberrequired

    End time of the time range.

  • page(in query): integerrequired

    Page number for the query results.

  • pageSize(in query): integer

    Number of records per page. For export, 0 means export all.

  • ascending(in query): boolean

    Sort order. Default is false (descending).

  • cluster(in query): stringrequired

    Name of the cluster.

  • logType(in query): string

    Type of log. Options: system, platform, kubernetes, workload. Default is workload.

  • projects(in query): string

    Project names for application logs, comma separated.

  • namespaces(in query): string

    Namespace names for application logs, comma separated.

  • workloads(in query): string

    Workload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.

  • podNames(in query): string

    Pod names, comma separated.

  • containerNames(in query): string

    Container names, comma separated.

  • nodes(in query): string

    Node names, comma separated.

  • paths(in query): string

    Path names, comma separated.

  • products(in query): string

    Product names for product logs, comma separated.

  • components(in query): string

    Component names for product logs or Kubernetes logs, comma separated.

  • query(in query): string

    Query keywords, supports AND, OR, and escape with backslash.

Response

  • 200object: Successful log search response
    Properties:

LogEntry

  • time: number

    Time of the log entry.

  • node: string

    Name of the node.

  • podName: string

    Name of the pod.

  • podId: string

    Identifier of the pod.

  • logData: string

    Log data as a JSON string.

  • logLevel: string

    Severity level of the log.

  • containerName: string

    Name of the container.

  • cluster: string

    Name of the cluster.

  • containerId: string

    Identifier of the container.

  • containerId8: string

    Shortened container identifier.

  • @timestamp: string

    Timestamp in string format.

  • namespace: string

    Namespace of the log.

  • project: string

    Project associated with the log.

  • path: string

    Log path.

  • logId: string

    Unique identifier of the log.

  • logType: string

    Type of the log.

  • logIndex: string

    Index name for the log.

  • component: string

    Component related to the log.

  • product: string

    Product name associated with the log.

  • workload: string

    Workload details.

/platform/logging.alauda.io/v2/clusters/{cluster}/logs/search

getLog Search by Cluster

Search logs by cluster with authentication.

Parameters

  • cluster(in path): stringrequired

    Name of the cluster.

  • start(in query): numberrequired

    Start time of the time range.

  • end(in query): numberrequired

    End time of the time range.

  • page(in query): integerrequired

    Page number for the query results.

  • pageSize(in query): integer

    Number of records per page. For export, 0 means export all.

  • ascending(in query): boolean

    Sort order. Default is false (descending).

  • logType(in query): string

    Type of log. Options: system, platform, kubernetes, workload. Default is workload.

  • projects(in query): string

    Project names for application logs, comma separated.

  • namespaces(in query): string

    Namespace names for application logs, comma separated.

  • workloads(in query): string

    Workload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.

  • podNames(in query): string

    Pod names, comma separated.

  • containerNames(in query): string

    Container names, comma separated.

  • nodes(in query): string

    Node names, comma separated.

  • paths(in query): string

    Path names, comma separated.

  • products(in query): string

    Product names for product logs, comma separated.

  • components(in query): string

    Component names for product logs or Kubernetes logs, comma separated.

  • query(in query): string

    Query keywords, supports AND, OR, and escape with backslash.

Response

  • 200object: Successful log search response
    Properties:

LogEntry

  • time: number

    Time of the log entry.

  • node: string

    Name of the node.

  • podName: string

    Name of the pod.

  • podId: string

    Identifier of the pod.

  • logData: string

    Log data as a JSON string.

  • logLevel: string

    Severity level of the log.

  • containerName: string

    Name of the container.

  • cluster: string

    Name of the cluster.

  • containerId: string

    Identifier of the container.

  • containerId8: string

    Shortened container identifier.

  • @timestamp: string

    Timestamp in string format.

  • namespace: string

    Namespace of the log.

  • project: string

    Project associated with the log.

  • path: string

    Log path.

  • logId: string

    Unique identifier of the log.

  • logType: string

    Type of the log.

  • logIndex: string

    Index name for the log.

  • component: string

    Component related to the log.

  • product: string

    Product name associated with the log.

  • workload: string

    Workload 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): stringrequired

    Name of the project.

  • cluster(in path): stringrequired

    Name of the cluster.

  • namespace(in path): stringrequired

    Name of the namespace.

  • start(in query): numberrequired

    Start time of the time range.

  • end(in query): numberrequired

    End time of the time range.

  • page(in query): integerrequired

    Page number for the query results.

  • pageSize(in query): integer

    Number of records per page. For export, 0 means export all.

  • ascending(in query): boolean

    Sort order. Default is false (descending).

  • logType(in query): string

    Type of log. Options: system, platform, kubernetes, workload. Default is workload.

  • projects(in query): string

    Project names for application logs, comma separated.

  • workloads(in query): string

    Workload type and name pairs for application logs, e.g., Deployment:lanaya. Multiple values separated by commas.

  • podNames(in query): string

    Pod names, comma separated.

  • containerNames(in query): string

    Container names, comma separated.

  • namespaces(in query): string

    Namespace names for application logs, comma separated.

  • nodes(in query): string

    Node names, comma separated.

  • paths(in query): string

    Path names, comma separated.

  • products(in query): string

    Product names for product logs, comma separated.

  • components(in query): string

    Component names for product logs or Kubernetes logs, comma separated.

  • query(in query): string

    Query keywords, supports AND, OR, and escape with backslash.

Response

  • 200object: Successful log search response
    Properties:

LogEntry

  • time: number

    Time of the log entry.

  • node: string

    Name of the node.

  • podName: string

    Name of the pod.

  • podId: string

    Identifier of the pod.

  • logData: string

    Log data as a JSON string.

  • logLevel: string

    Severity level of the log.

  • containerName: string

    Name of the container.

  • cluster: string

    Name of the cluster.

  • containerId: string

    Identifier of the container.

  • containerId8: string

    Shortened container identifier.

  • @timestamp: string

    Timestamp in string format.

  • namespace: string

    Namespace of the log.

  • project: string

    Project associated with the log.

  • path: string

    Log path.

  • logId: string

    Unique identifier of the log.

  • logType: string

    Type of the log.

  • logIndex: string

    Index name for the log.

  • component: string

    Component related to the log.

  • product: string

    Product name associated with the log.

  • workload: string

    Workload details.