Get cross-cluster replication stats Added in 6.5.0

GET /_ccr/stats

This API returns stats about auto-following and the same shard-level stats as the get follower stats API.

Responses

GET /_ccr/stats
curl \
 -X GET http://api.example.com/_ccr/stats
Response examples (200)
{
  "auto_follow_stats": {
    "auto_followed_clusters": [
      {
        "cluster_name": "string",
        "last_seen_metadata_version": 42.0,
        "": 42.0
      }
    ],
    "number_of_failed_follow_indices": 42.0,
    "number_of_failed_remote_cluster_state_requests": 42.0,
    "number_of_successful_follow_indices": 42.0,
    "recent_auto_follow_errors": [
      {
        "type": "string",
        "reason": "string",
        "stack_trace": "string",
        "caused_by": {},
        "root_cause": [
          {}
        ],
        "suppressed": [
          {}
        ]
      }
    ]
  },
  "follow_stats": {
    "indices": [
      {
        "index": "string",
        "shards": [
          {
            "bytes_read": 42.0,
            "failed_read_requests": 42.0,
            "failed_write_requests": 42.0,
            "fatal_exception": {},
            "follower_aliases_version": 42.0,
            "follower_global_checkpoint": 42.0,
            "follower_index": "string",
            "follower_mapping_version": 42.0,
            "follower_max_seq_no": 42.0,
            "follower_settings_version": 42.0,
            "last_requested_seq_no": 42.0,
            "leader_global_checkpoint": 42.0,
            "leader_index": "string",
            "leader_max_seq_no": 42.0,
            "operations_read": 42.0,
            "operations_written": 42.0,
            "outstanding_read_requests": 42.0,
            "outstanding_write_requests": 42.0,
            "read_exceptions": [
              {}
            ],
            "remote_cluster": "string",
            "shard_id": 42.0,
            "successful_read_requests": 42.0,
            "successful_write_requests": 42.0,
            "time_since_last_read": "string",
            "total_read_remote_exec_time": "string",
            "total_read_time": "string",
            "total_write_time": "string",
            "write_buffer_operation_count": 42.0
          }
        ]
      }
    ]
  }
}