# Use Elastic APM without search.allow\_expensive\_queries config

**URL:** <https://discuss.elastic.co/t/use-elastic-apm-without-search-allow-expensive-queries-config/315499>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [September 29, 2022, 7:58pm UTC](https://discuss.elastic.co/t/use-elastic-apm-without-search-allow-expensive-queries-config/315499 "2022-09-29T19:58:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo\_Henrique](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonardo_henrique/32/79658_2.png) [@Leonardo\_Henrique](https://discuss.elastic.co/u/Leonardo_Henrique)\
**Post date:** [September 29, 2022, 7:58pm UTC](https://discuss.elastic.co/t/use-elastic-apm-without-search-allow-expensive-queries-config/315499/1 "2022-09-29T19:58:46Z")

</div>

Hello, everyone! How have you been?

I recently updated a Elastic cluster from 7.9.3 to 8.3.2 (intermediate upgrade to 7.17.5).

When I updated the APM Server to 8.3.2 I got the error referred to the APM Integration not configured yet. Well, when I went to the fleet page I received the message:

`all shards failed: search_phase_execution_exception: [exception] Reason: Cannot search on field [epm-packages.keep_policies_up_to_date] since it is not indexed and 'search.allow_expensive_queries' is set to false.`

Then I turned the search.allow\_expensive\_queries key from false to true on all nodes I have (masters and data) so I could access the fleet page.

My question is, if I am not interested in use this key as true, what is the another method to have fleet in place?

Thanks!

---

<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:** [October 27, 2022, 7:59pm UTC](https://discuss.elastic.co/t/use-elastic-apm-without-search-allow-expensive-queries-config/315499/2 "2022-10-27T19:59:46Z")

</div>

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