# Search\_phase\_execution\_exception (500)

**URL:** https://discuss.elastic.co/t/search-phase-execution-exception-500/279718
**Category:** APM
**Created:** [July 27, 2021, 11:17am UTC](https://discuss.elastic.co/t/search-phase-execution-exception-500/279718 "2021-07-27T11:17:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fntkg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fntkg/32/77273_2.png) [@fntkg](https://discuss.elastic.co/u/fntkg)
#### Post date: [July 27, 2021, 11:17am UTC](https://discuss.elastic.co/t/search-phase-execution-exception-500/279718/1 "2021-07-27T11:17:11Z")

</div>

When opening apm app in Kibana, i get an error all the time: `search_phase_execution_exception (500)` and kibana logs (`debug` mode) doesn't give me any useful info. Can someone give me a hand? 🙂

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/9466e92047033b596d3f7fd344c131990b20c044.png)

This is my APM server conf:

```auto
setup.template.enabled: true
setup.template.name: "apm-default-template"
setup.template.pattern: "apm-*"
indices:
    - index: "apm-%{[service.name]}-000001"

```

I have a index template called "apm-default-template" linked to a basic policy with rollover enabled wich has default settings. In other hand, an alias has been created for each index via API:

```auto
POST /_aliases
{
  "actions" : [
    { "add" : {
      "index" : "apm-service_name-000001",
      "alias" : "apm-service_name",
      "is_write_index": true
    }
    }
  ]
}

```

And a `rollover_alias` was added to each index from the UI:

```auto
"index.lifecycle.rollover_alias": "apm-service_name",

```

**Note** : The data is showing in Discover tab without problems!

---

<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: [August 24, 2021, 11:17am UTC](https://discuss.elastic.co/t/search-phase-execution-exception-500/279718/2 "2021-08-24T11:17:41Z")

</div>

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