# How to find out the visulizations/dashboards/canvas which uses a specific index

**URL:** <https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762>\
**Category:** Kibana\
**Created:** [September 8, 2025, 12:07pm UTC](https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762 "2025-09-08T12:07:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay117](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vijay117](https://discuss.elastic.co/u/vijay117)\
**Post date:** [September 8, 2025, 12:07pm UTC](https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762/1 "2025-09-08T12:07:10Z")

</div>

We use same index in multiple dashboards and canvas. Is there any way to find out the dashboards and canvas uses a specific index ?

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [September 9, 2025, 3:26am UTC](https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762/2 "2025-09-09T03:26:45Z")

</div>

Hello @vijay117

I am not sure if there is any direct way to find the list of indices used as part of dashboard/canvas.

There is one workaround which i can think of where we can export the saved objects to a ndjson file.

Use a script which i found via LLM to extract the data from this ndjson file :

> **Bash Script**
>
> Below is the script :
> 
> ```auto
> #!/bin/bash
> 
> # Path to your exported NDJSON file
> NDJSON_FILE="export.ndjson"
> 
> # Extract index-pattern IDs and titles
> declare -A index_patterns
> while IFS= read -r line; do
> type=$(echo "$line" | jq -r '.type')
> if [["$type" == "index-pattern"]]; then
> id=$(echo "$line" | jq -r '.id')
> title=$(echo "$line" | jq -r '.attributes.title')
> index_patterns["$id"]="$title"
> fi
> done < "$NDJSON_FILE"
> 
> # Print header
> printf "%-20s | %-30s | %-30s\n" "Type" "Title" "Index Pattern Used"
> printf "%s\n" "---------------------|--------------------------------|--------------------------------"
> 
> # Parse other objects and map index pattern references
> while IFS= read -r line; do
> type=$(echo "$line" | jq -r '.type')
> title=$(echo "$line" | jq -r '.attributes.title // empty')
> refs=$(echo "$line" | jq -r '.references[]? | select(.type=="index-pattern") | .id')
> if [["$type" != "index-pattern" && -n "$refs"]]; then
> for ref in $refs; do
> index_title="${index_patterns[$ref]}"
> printf "%-20s | %-30s | %-30s\n" "$type" "$title" "$index_title"
> done
> fi
> done < "$NDJSON_FILE"
> 
> ```

We will get below output , maybe if you are only looking for dashboard can filter in script for type dashboard :

| Type | Title | Index Pattern Used |
| --- | --- | --- |
| visualization | [Logs] Visitors Map | kibana\_sample\_data\_logs |
| lens | [Logs] Bytes distribution | kibana\_sample\_data\_logs |
| map | [eCommerce] Orders by Country | kibana\_sample\_data\_ecommerce |
| map | [eCommerce] Orders by Country | kibana\_sample\_data\_ecommerce |
| map | [eCommerce] Orders by Country | kibana\_sample\_data\_ecommerce |
| dashboard | [eCommerce] Revenue Dashboard | kibana\_sample\_data\_ecommerce |
| dashboard | [eCommerce] Revenue Dashboard | kibana\_sample\_data\_ecommerce |
| dashboard | [Flights] Global Flight Dashboard | kibana\_sample\_data\_flights |
| dashboard | [Flights] Global Flight Dashboard | kibana\_sample\_data\_flights |
| dashboard | [Logs] Web Traffic | kibana\_sample\_data\_logs |
| dashboard | [Logs] Web Traffic | kibana\_sample\_data\_logs |

Thanks!!

---

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [September 11, 2025, 3:24pm UTC](https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762/4 "2025-09-11T15:24:06Z")

</div>

Are you interested to `index` specifically or rather dataViews?

I mean, are you interested to see which visualizations are using `logs-*` or `logs-abc`?

---

<div class="post-metadata">

**Author:** ![vijay117](https://avatars.discourse-cdn.com/v4/letter/v/e0b2c6/32.png) [@vijay117](https://discuss.elastic.co/u/vijay117)\
**Post date:** [September 12, 2025, 12:12pm UTC](https://discuss.elastic.co/t/how-to-find-out-the-visulizations-dashboards-canvas-which-uses-a-specific-index/381762/5 "2025-09-12T12:12:28Z")

</div>

![Screenshot 2025-09-12 at 13.10.58](https://us1.discourse-cdn.com/elastic/original/3X/0/7/0784cd3f31332839dd00d6bfde635163652376ec.png)

I found out that, It will give all the visualizations which uses that index when you click on relationships
