# Dev Tools: How to create a new index on existing index

**URL:** <https://discuss.elastic.co/t/dev-tools-how-to-create-a-new-index-on-existing-index/297504>\
**Category:** Elasticsearch\
**Created:** [February 17, 2022, 2:48pm UTC](https://discuss.elastic.co/t/dev-tools-how-to-create-a-new-index-on-existing-index/297504 "2022-02-17T14:48:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pandu](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pandu](https://discuss.elastic.co/u/pandu)\
**Post date:** [February 17, 2022, 2:48pm UTC](https://discuss.elastic.co/t/dev-tools-how-to-create-a-new-index-on-existing-index/297504/1 "2022-02-17T14:48:28Z")

</div>

I have an index. I am creating a bucket aggregation using Dev Tools (GET method). How do I use this bucket aggregation in visualization? Do I need to create a new index for the GET.. and then visualize? Or, I could use the GET...script in the visualization?

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 20, 2022, 11:30am UTC](https://discuss.elastic.co/t/dev-tools-how-to-create-a-new-index-on-existing-index/297504/2 "2022-02-20T11:30:00Z")

</div>

Many visualisations create necessary aggregations internaly.

When you set timestamp field to Horizontal axis at Line chart of Lens, date histogram aggregation are used. You can check what kind of aggregation used by `Inspect` button.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5d0dab2fbe2c7780a9497f33f5a5dce6aabc20a4.png)

If you want to use fully customized aggregation query, `Custom visualization` using `vega`/`vega-lite` will help you.

---

<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:** [March 20, 2022, 11:30am UTC](https://discuss.elastic.co/t/dev-tools-how-to-create-a-new-index-on-existing-index/297504/3 "2022-03-20T11:30:13Z")

</div>

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