Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for OpenSearch
  • Getting started
    • All guides
    • Managing users
      • Viewing cluster logs
      • Monitoring the state of a cluster and its hosts
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Getting a cluster log
  • Getting a cluster log stream
  1. Step-by-step guides
  2. Logs and monitoring
  3. Viewing cluster logs

Viewing OpenSearch cluster logs

Written by
Yandex Cloud
Updated at January 30, 2026
  • Getting a cluster log
  • Getting a cluster log stream

Managed Service for OpenSearch allows you to get a cluster log snippet for the selected time period and view logs in real time.

Getting a cluster logGetting a cluster log

REST API
gRPC API
  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.ListLogs method, e.g., via the following cURL request:

    curl \
        --request GET \
        --header "Authorization: Bearer $IAM_TOKEN" \
        --url 'https://mdb.api.cloud.yandex.net/managed-opensearch/v1/clusters/<cluster_ID>:logs' \
        --url-query serviceType=<host_group_type> \
        --url-query columnFilter=<column_list> \
        --url-query fromTime=<time_range_start> \
        --url-query toTime=<time_range_end>
    

    Where:

    • serviceType: Type of hosts you need the records for, OPENSEARCH or DASHBOARDS.

    • columnFilter: List of output data columns: The list of data columns depends on the selected type of hosts, serviceType:

      • For OpenSearch hosts:

        • component: Cluster component the log entry refers to.
        • hostname: Host name.
        • level: Logging level.
        • message: Message output by the service.
      • For Dashboards hosts:

        • hostname: Host name.
        • message: Message output by the service.
    • fromTime: Start of the time range in RFC-3339 format, e.g., 2024-09-18T15:04:05Z.

    • toTime: End of the time range in the same format as fromTime.

    You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume that the repository contents reside in the ~/cloudapi/ directory.

  3. Call the ClusterService.ListLogs method, e.g., via the following gRPCurl request:

    grpcurl \
        -format json \
        -import-path ~/cloudapi/ \
        -import-path ~/cloudapi/third_party/googleapis/ \
        -proto ~/cloudapi/yandex/cloud/mdb/opensearch/v1/cluster_service.proto \
        -rpc-header "Authorization: Bearer $IAM_TOKEN" \
        -d '{
              "cluster_id": "<cluster_ID>",
              "service_type": "<host_group_type>",
              "column_filter": [
                "<column_1>", "<column_2>", ..., "<column_N>"
              ],
              "from_time": "<time_range_start>",
              "to_time": "<time_range_end>"
            }' \
        mdb.api.cloud.yandex.net:443 \
        yandex.cloud.mdb.opensearch.v1.ClusterService.ListLogs
    

    Where:

    • service_type: Type of hosts you need the records for, OPENSEARCH or DASHBOARDS.

    • column_filter: List of output data columns: The list of data columns depends on the selected type of hosts, service_type:

      • For OpenSearch hosts:

        • component: Cluster component the log entry refers to.
        • hostname: Host name.
        • level: Logging level.
        • message: Message output by the service.
      • For Dashboards hosts:

        • hostname: Host name.
        • message: Message output by the service.
    • from_time: Start of the time range in RFC-3339 format, e.g., 2024-09-18T15:04:05Z.

    • to_time: End of the time range in the same format as from_time.

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

Getting a cluster log streamGetting a cluster log stream

This method allows you to get cluster logs in real time.

REST API
gRPC API
  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Call the Cluster.StreamLogs method, e.g., via the following cURL request:

    curl \
        --request GET \
        --header "Authorization: Bearer $IAM_TOKEN" \
        --url 'https://mdb.api.cloud.yandex.net/managed-opensearch/v1/clusters/<cluster_ID>:stream_logs' \
        --url-query serviceType=<host_group_type> \
        --url-query columnFilter=<column_list>
    

    Where:

    • serviceType: Type of hosts you need the records for, OPENSEARCH or DASHBOARDS.

    • columnFilter: List of output data columns: The list of data columns depends on the selected type of hosts, serviceType:

      • For OpenSearch hosts:

        • component: Cluster component the log entry refers to.
        • hostname: Host name.
        • level: Logging level.
        • message: Message output by the service.
      • For Dashboards hosts:

        • hostname: Host name.
        • message: Message output by the service.

    You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

    Once you launch the command, it will continue running, displaying new logs in its output in real time.

  1. Get an IAM token for API authentication and put it in an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume that the repository contents reside in the ~/cloudapi/ directory.

  3. Call the ClusterService.StreamLogs method, e.g., via the following gRPCurl request:

    grpcurl \
        -format json \
        -import-path ~/cloudapi/ \
        -import-path ~/cloudapi/third_party/googleapis/ \
        -proto ~/cloudapi/yandex/cloud/mdb/opensearch/v1/cluster_service.proto \
        -rpc-header "Authorization: Bearer $IAM_TOKEN" \
        -d '{
              "cluster_id": "<cluster_ID>",
              "service_type": "<host_group_type>",
              "column_filter": [
                "<column_1>", "<column_2>", ..., "<column_N>"
              ]
            }' \
        mdb.api.cloud.yandex.net:443 \
        yandex.cloud.mdb.opensearch.v1.ClusterService.StreamLogs
    

    Where:

    • service_type: Type of hosts you need the records for, OPENSEARCH or DASHBOARDS.

    • column_filter: List of output data columns: The list of data columns depends on the selected type of hosts, service_type:

      • For OpenSearch hosts:

        • component: Cluster component the log entry refers to.
        • hostname: Host name.
        • level: Logging level.
        • message: Message output by the service.
      • For Dashboards hosts:

        • hostname: Host name.
        • message: Message output by the service.

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

    Once you launch the command, it will continue running, displaying new logs in its output in real time.

Was the article helpful?

Previous
Managing users
Next
Monitoring the state of a cluster and its hosts
© 2026 Direct Cursus Technology L.L.C.