# How to access an index created by APM in Kibana's custom visualization?

**URL:** <https://discuss.elastic.co/t/how-to-access-an-index-created-by-apm-in-kibanas-custom-visualization/347949>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [November 24, 2023, 5:33pm UTC](https://discuss.elastic.co/t/how-to-access-an-index-created-by-apm-in-kibanas-custom-visualization/347949 "2023-11-24T17:33:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiagobr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiagobr/32/123162_2.png) [@thiagobr](https://discuss.elastic.co/u/thiagobr)\
**Post date:** [November 24, 2023, 5:33pm UTC](https://discuss.elastic.co/t/how-to-access-an-index-created-by-apm-in-kibanas-custom-visualization/347949/1 "2023-11-24T17:33:53Z")

</div>

I need to access some custom labels sent from the front in the `Dashboard --> Custom Visualization` area, I'm trying to do the following code but I don't seem to get anything. In addition, I am getting a specific index from APM itself that has a specific date, the aim is to get all APM label logs.

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "title": "Gráfico de Linhas com Propriedade 'testandoAPM'",

  "data": {
    "url": {
      "index": ".ds-traces-apm.rum-default-2023.11.20-000001",
      "body": { "_source": ["labels.workspaceStringfyData"] },
      "size": 1000
    },
    "format": {"property": "hits.hits"}
  },

  "mark": "text",

 "encoding": {
    "x": {
       "field": workspaceId,
      "type": "ordinal",
      "axis": {"title": "ID"} 
    },
    "y": {
      "type": "quantitative",
      "aggregate": "count",
      "axis": {"title": "HI"}
    }
  }
}

```

I also noticed that if I do the filter through custom visualization, the custom property does not appear, but if I do the filter by creating a normal chart (without using custom) I can access it.

PS: My property is an array of objects, in this case I created a `JSON.stringfy` from the frontend for Elastic, I need to use it as an array to access the properties and assemble the graph.

---

<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 22, 2023, 5:34pm UTC](https://discuss.elastic.co/t/how-to-access-an-index-created-by-apm-in-kibanas-custom-visualization/347949/2 "2023-12-22T17:34:06Z")

</div>

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