Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Is seems that some field references in the Json code are wrong, as example I will take the Visualization "Disk space distribution", where the field reference is missing. See the actual json for the Visualization in the right side (this can be found under Visualizations > Manage Visualizations):

GUI Build of the VisualizationJSON from the Import

Image Modified

Kodeblok
{
  "title": "Disk space distribution",
  "type": "pie",
  "params": {
    "shareYAxis": true,
    "addTooltip": true,
    "addLegend": true,
    "isDonut": false
  },
  "aggs": [
    {
      "id": "1",
      "enabled": true,
      "type": "sum",
      "schema": "metric",
      "params": {
        "field": "system.filesystem.total",
        "customLabel": "Total size"
      }
    },
    {
      "id": "2",
      "enabled": true,
      "type": "terms",
      "schema": "segment",
      "params": {
        "field": "system.filesystem.mount_point",
        "size": 5,
        "order": "desc",
        "orderBy": "1",
        "customLabel": "Mount point"
      }
    }
  ],
  "listeners": {}
}

In fact, it seems that "system.filesystem.mount_point" does not exist, so I do replace it with "system.filesystem.mount_point.keyword" that does, and save the Visualization - and hence it works:

Image Added