# Change default index name for marvel.agent.exporters

**URL:** https://discuss.elastic.co/t/change-default-index-name-for-marvel-agent-exporters/66499
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [November 18, 2016, 7:45am UTC](https://discuss.elastic.co/t/change-default-index-name-for-marvel-agent-exporters/66499 "2016-11-18T07:45:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![girirajsharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/girirajsharma/32/5611_2.png) [@girirajsharma](https://discuss.elastic.co/u/girirajsharma)
#### Post date: [November 18, 2016, 7:45am UTC](https://discuss.elastic.co/t/change-default-index-name-for-marvel-agent-exporters/66499/1 "2016-11-18T07:45:48Z")

</div>

In reference to [https://www.elastic.co/guide/en/marvel/2.3/configuration.html](https://www.elastic.co/guide/en/marvel/2.3/configuration.html), we have following `marvel.agent.exporters` config to change the time format suffix for marvel indices

```
index:
      name:
        time_format: <string> # time format suffix for marvel indices (default: "YYYY.MM.dd")

```

But, what if I also wish to change the name of index or add a prefix. The default name is something like `marvel-es-YYYY.MM.dd`. Isn't there any way to change [marvel-es] to something else or add a prefix to it like `x-marvel-es-YYYY.MM.dd` ?

I have a single ES node and multiple marvel agents (say x,y,z) pushing to the same ES node. This I wish to have separate index name suffix for each agent. X, Y and Z each will be monitoring different set of ES indices. So, I wish to achieve index naming convention like

```
X => X-marvel-es-YYYY.MM.dd
Y => Y-marvel-es-YYYY.MM.dd
Z => Z-marvel-es-YYYY.MM.dd
```

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [December 5, 2016, 8:00pm UTC](https://discuss.elastic.co/t/change-default-index-name-for-marvel-agent-exporters/66499/2 "2016-12-05T20:00:35Z")

</div>

Hi @girirajsharma,

Unfortunately, you found the only mechanism for renaming an index: by adding a suffix (the data string can include constants). Importantly, this also does not do anything to impact the name of the `.marvel-es-data-1` index.

What are you trying to use different indices to achieve that doesn't get achieved in the same index?

Thanks,  
Chris

---

<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 2, 2017, 8:00pm UTC](https://discuss.elastic.co/t/change-default-index-name-for-marvel-agent-exporters/66499/3 "2017-01-02T20:00:37Z")

</div>

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