# Howto to visualize/map latest state of a string value of multiple docs

**URL:** <https://discuss.elastic.co/t/howto-to-visualize-map-latest-state-of-a-string-value-of-multiple-docs/318735>\
**Category:** Kibana\
**Created:** [November 11, 2022, 11:25am UTC](https://discuss.elastic.co/t/howto-to-visualize-map-latest-state-of-a-string-value-of-multiple-docs/318735 "2022-11-11T11:25:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefws/32/6442_2.png) [@stefws](https://discuss.elastic.co/u/stefws)\
**Post date:** [November 11, 2022, 11:25am UTC](https://discuss.elastic.co/t/howto-to-visualize-map-latest-state-of-a-string-value-of-multiple-docs/318735/1 "2022-11-11T11:25:29Z")

</div>

Got metricbeat fetching jolokia values of the state of several instances of Jboss servers of several linux boxes. I tinkering with howto best create a visualization that'll show an overview of each expected instances state if known in the time span (now - now-$sample\_period\_mins) otherwise declare state as unknown.

docs contains these columns:

```auto
  "jolokia": {
      "jboss": {
        "root": {
          "state": "ok",
          "running": {
            "state": "NORMAL",
            "mode": "NORMAL"
          }
        }
      },
      "instance": "titan_jboss-green-a"
    },

```

Barely got experiences with Canvas, so thinking it might be possible to create a dashboard with a fixed numbers of visulaization elements showing a background colored square 'metric' only having the color changed dependent on the present of a string value jolokia.jboss.root.state[.keyword] and "ok".

Could I some how create an visualization library element and repeat this on a dashboard run with different filters/input arg. values per expected instances?

TIA

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2022, 9:05am UTC](https://discuss.elastic.co/t/howto-to-visualize-map-latest-state-of-a-string-value-of-multiple-docs/318735/2 "2022-12-09T09:05:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2023, 9:06am UTC](https://discuss.elastic.co/t/howto-to-visualize-map-latest-state-of-a-string-value-of-multiple-docs/318735/3 "2023-01-06T09:06:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
