# APM Agent Settings Kibana Not Applying

**URL:** <https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841>\
**Category:** APM\
**Tags:** ruby, ui\
**Created:** [January 21, 2021, 7:08pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841 "2021-01-21T19:08:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willis/32/75826_2.png) [@willis](https://discuss.elastic.co/u/willis)\
**Post date:** [January 21, 2021, 7:08pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841/1 "2021-01-21T19:08:49Z")

</div>

**Kibana version** :

7.9.2

**Elasticsearch version** :

7.9.2

**APM Server version** :

7.9.2

**APM Agent language and version** :

Ruby, 3.13.0

\*\* Problem \*\*

I am looking to use the Kibana APM Agent remote configuration to manage a Ruby APM agent. I have two applications with access to the apm-server that are correctly returning spans/data and presenting in Kibana. One agent (nodejs) is able to grab remote configuration settings from Kibana and apply them. The other agent (Ruby) does not seem to apply the configuration settings. You can see in the attached screenshot the first agent grabs the settings but the second (Ruby) always has "Not yet applied by any agents".

The apm-server logs show that the Ruby agent is asking for configuration settings:

`2021-01-21T16:54:02.548Z	INFO	[request]	middleware/log_middleware.go:97	request ok	{"request_id": "9c3574c5-e41d-45b1-a5e7-acfd8c0c80eb", "method": "GET", "URL": "/config/v1/agents?service.name= *******", "content_length": 0, "remote_address": "100.96.234.12", "user-agent": "elastic-apm-ruby/3.13.0 http.rb/3.3.0 ruby/2.5.8", "response_code": 200}`

The response code is always 200 from the apm-server.

 ![Screen Shot 2021-01-21 at 2.05.46 PM](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23ecc480cf372801267822480d78c67e0df34533.png)

---

<div class="post-metadata">

**Author:** ![sqren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sqren/32/26110_2.png) [@sqren](https://discuss.elastic.co/u/sqren)\
**Post date:** [January 21, 2021, 8:25pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841/2 "2021-01-21T20:25:12Z")

</div>

Hi there,

> The apm-server logs show that the Ruby agent is asking for configuration settings:

This does indeed sound odd. Since APM Server calls Kibana to get the configuration can you check the logs for Kibana also?  
Specifically looks for requests to `POST /api/apm/settings/agent-configuration/search`. The log statements will most likely say something like:

```auto
Config was not found for my-service/my-environment

```

I'm interested to hear if requests from the ruby agent reaches Kibana or only requests from the node agent does.

---

<div class="post-metadata">

**Author:** ![willis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willis/32/75826_2.png) [@willis](https://discuss.elastic.co/u/willis)\
**Post date:** [January 22, 2021, 2:18pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841/3 "2021-01-22T14:18:19Z")

</div>

Thanks @sqren.

There are requests from the Ruby agent in Kibana to `POST /api/apm/settings/agent-configuration/search` that respond with

`Config was found for c ***** /undefined`

However, my Ruby agent environment is not called `undefined`.

The nodejs has the correct environment name in the response:

`Config was found for b ***** /development`

---

<div class="post-metadata">

**Author:** ![sqren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sqren/32/26110_2.png) [@sqren](https://discuss.elastic.co/u/sqren)\
**Post date:** [January 25, 2021, 2:27pm UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841/4 "2021-01-25T14:27:53Z")

</div>

Thanks for the details.

This could be a bug. Would you mind [creating a bug report](https://github.com/elastic/kibana/issues/new?assignees=&labels=Team%3Aapm&template=APM.md&title=%5BAPM%5D) on Github with the same details you already supplied here?

---

<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:** [February 15, 2021, 10:27am UTC](https://discuss.elastic.co/t/apm-agent-settings-kibana-not-applying/261841/5 "2021-02-15T10:27:54Z")

</div>

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