Visualize - Replicate Last Reboot

Hello,

I wanted to recreate this bar chart:
image

Hi @erikg ,

Did you try Lens and horizontal bar chart?

I believe you can use filters to split data by days range and Servers/Workstations (5 filters)

Regards, Dima

Hi @erikg

can you share the a sample document JSON?

@Dzmitry thanks!

@Marco_Liberati
Here's a sample document:

{
  "_index": ".ds-metrics-system.uptime-default-2024.08.05-000040",
  "_id": "h4bAB60-hOFlr_xuAAABkXCd-tM",
  "_version": 1,
  "_score": 0,
  "_source": {
    "@timestamp": "2024-08-20T16:28:07.251Z",
    "data_stream": {
      "dataset": "system.uptime",
      "namespace": "default",
      "type": "metrics"
    },
    "ecs": {
      "version": "8.0.0"
    },
    "host": {
      "name": "ELASTICDEV1"
    },
    "system": {
      "uptime": {
        "duration": {
          "ms": 9000
        }
      }
    }
  }
}

I am considering making an runtime data field based on the system.uptime.duration.ms