Grafana dashboard: Raw Logs

View Akamai Datastream raw logs from the Hydrolix explore dashboard

{
  "__inputs": [
    {
      "name": "DS_HYDRO",
      "label": "Hydrolix Cluster",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-clickhouse-datasource",
      "pluginName": "ClickHouse"
    },
    {
      "name": "VAR_TABLE",
      "type": "constant",
      "label": "table",
      "value": "",
      "description": ""
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.5.1"
    },
    {
      "type": "datasource",
      "id": "grafana-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "3.0.1-beta"
    },
    {
      "type": "panel",
      "id": "logs",
      "name": "Logs",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${DS_HYDRO}"
      },
      "gridPos": {
        "h": 17,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 1,
      "options": {
        "dedupStrategy": "none",
        "enableLogDetails": true,
        "prettifyLogMessage": true,
        "showCommonLabels": false,
        "showLabels": false,
        "showTime": true,
        "sortOrder": "Descending",
        "wrapLogMessage": false
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${DS_HYDRO}"
          },
          "format": 2,
          "meta": {
            "builderOptions": {
              "fields": [],
              "limit": 100,
              "mode": "list"
            }
          },
          "queryType": "sql",
          "rawSql": "SELECT toString(statusCode), toDateTime(reqTimeSec), * EXCEPT statusCode\nFROM ${table}\nWHERE $__timeFilter(reqTimeSec)\nAND ${filter}\nORDER BY reqTimeSec\nLIMIT 1000\nSETTINGS hdx_query_max_execution_time=60, hdx_query_admin_comment='akamai - rawlogs - ${__user.login}'",
          "refId": "A",
          "selectedFormat": 2
        }
      ],
      "title": "Raw Logs",
      "type": "logs"
    }
  ],
  "refresh": "",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "1=1",
          "value": "1=1"
        },
        "hide": 0,
        "name": "filter",
        "options": [
          {
            "selected": true,
            "text": "1=1",
            "value": "1=1"
          }
        ],
        "query": "1=1",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "hide": 2,
        "name": "table",
        "query": "${VAR_TABLE}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_TABLE}",
          "text": "${VAR_TABLE}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_TABLE}",
            "text": "${VAR_TABLE}",
            "selected": false
          }
        ]
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Raw Logs",
  "uid": "b7e96d21-449f-453e-b0c3-37346e3224a9",
  "version": 2,
  "weekStart": "",
  "gnetId": 18821
}