log

Return all queries executed by clients on a cluster.

Changed on
get/log/{clusterId}

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

clusterIdstring required

Id or name of the cluster

Query parameters

filterstring

Filter executed queries. Use this paremeter to filter primed or non primed executed queries. Accepts "primed" or "nonprimed" values. If not set it will return all queries.

Response

Queries executed

idinteger required

Example response

{
  "data_centers": [
    {
      "nodes": [
        {
          "queries": [
            {
              "connection": "/127.0.0.1:34662",
              "received_timestamp": 1496955368551,
              "primed": true,
              "frame": {
                "protocol_version": 4,
                "beta": false,
                "stream_id": 128,
                "tracing_id": null,
                "custom_payload": {},
                "warnings": [],
                "message": {
                  "type": "QUERY",
                  "opcode": 7,
                  "is_response": false,
                  "query": "select * from tbl",
                  "options": {
                    "consistency": "LOCAL_ONE",
                    "positional_values": [],
                    "named_values": {},
                    "skip_metadata": false,
                    "page_size": 5000,
                    "paging_state": null,
                    "serial_consistency": "SERIAL",
                    "default_timestamp": 100,
                    "keyspace": null
                  }
                }
              }
            }
          ]
        }
      ]
    }
  ]
}

Changes