# APM Index Pattern Numeric

**URL:** <https://discuss.elastic.co/t/apm-index-pattern-numeric/179582>\
**Category:** APM\
**Tags:** server\
**Created:** [May 3, 2019, 8:17pm UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582 "2019-05-03T20:17:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaderolyver](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jaderolyver](https://discuss.elastic.co/u/jaderolyver)\
**Post date:** [May 3, 2019, 8:17pm UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/1 "2019-05-03T20:17:26Z")

</div>

I follow all instructions to install APM Server on my server that had java application, and works everthing fine, but the elastic has INFO about the ( illegal\_argument\_exception: index name [apm-7.0.0-span-2019.05.03] does not match pattern '^.\*-\d+$' ).

Why the apm-server dont create the index with pattern like this apm-7.0.0-span-2019.05.03-001, so anyone knows about this.

Thanks.

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [May 6, 2019, 11:47am UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/2 "2019-05-06T11:47:28Z")

</div>

Hi Jader,

You can see the default indices for apm-server 7.0.0 here:  
[https://github.com/elastic/apm-server/blob/v7.0.0/apm-server.yml#L262-L303](https://github.com/elastic/apm-server/blob/v7.0.0/apm-server.yml#L262-L303),  
as you can see they don't end in `-\d+`.  
You can modify the indices yourself uncommenting those lines in the configuration and changing them as you want.  
You might find this bit of documentation useful: [https://www.elastic.co/guide/en/apm/server/current/elasticsearch-output.html#indices-option-es](https://www.elastic.co/guide/en/apm/server/current/elasticsearch-output.html#indices-option-es)

Let me know if that helps,

Juan

---

<div class="post-metadata">

**Author:** ![jaderolyver](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jaderolyver](https://discuss.elastic.co/u/jaderolyver)\
**Post date:** [May 7, 2019, 12:59am UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/3 "2019-05-07T00:59:33Z")

</div>

Hey i have seen the documentation but don't have nothing about to set to the end of the format to generate the sequence Ex. apm-%{[version]}-span-%{+yyyy.MM.dd}-0001 another day apm-%{[version]}-span-%{+yyyy.MM.dd}-0002 and in the git dont have nothing too.

Thanks.

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [May 8, 2019, 2:21pm UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/4 "2019-05-08T14:21:12Z")

</div>

Hello,

Just to understand the issue better, what are you trying to achieve by adding that sequence suffix?

Juan

---

<div class="post-metadata">

**Author:** ![jaderolyver](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jaderolyver](https://discuss.elastic.co/u/jaderolyver)\
**Post date:** [May 8, 2019, 6:08pm UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/5 "2019-05-08T18:08:53Z")

</div>

![Elastic_Erro_01](https://us1.discourse-cdn.com/elastic/original/3X/4/d/4d7c1bbb6ad8ded131736de866c6062e216ece21.jpeg)  
 ![Elastic_Erro_02](https://us1.discourse-cdn.com/elastic/original/3X/e/b/eb4d8825cafd2128a103e1d6ff22a60e50694fcd.jpeg)

Tell me how i can to fix it.

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [May 9, 2019, 10:02am UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/6 "2019-05-09T10:02:36Z")

</div>

Hi,

That is useful info, thanks. My question now is if you created an index rollover alias, and how.

Can you run this query for me from the Kibana Dev Tools Console?

> GET apm-\*/\_settings

Grab the index.lifecycle.rollover\_alias from the response, and then would you let me know what this says:

> GET \_alias/\<ROLLOVER\_ALIAS\>

If you had not created it, you can do it like so:

```
PUT apm-7.0.0-span-001 
{
  "aliases": {
    "apm-{stack-version}-span":{
      "is_write_index": true
    }
  }
}

```

Let me know if that helps

Juan

---

<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:** [June 6, 2019, 10:02am UTC](https://discuss.elastic.co/t/apm-index-pattern-numeric/179582/7 "2019-06-06T10:02:38Z")

</div>

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