# Question on APM architecture elk 8

**URL:** <https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827>\
**Category:** APM\
**Tags:** docker, rum, server\
**Created:** [March 16, 2022, 7:22am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827 "2022-03-16T07:22:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [March 16, 2022, 7:22am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/1 "2022-03-16T07:22:08Z")

</div>

Hi,

I was going through the elk 8 documentation and noticed that the previous APM server has been changed to legacy and from 8 onwards, we need to migrate it to Fleet APM integration

I have few questions on the 8 model. Can some one clarify me

As per the image

[![](https://us1.discourse-cdn.com/elastic/optimized/3X/2/0/20e75b38f9f0f8f62a5685a6c574159b76c18198_2_690x382.png) ](https://us1.discourse-cdn.com/elastic/optimized/3X/2/0/20e75b38f9f0f8f62a5685a6c574159b76c18198_2_690x382.png)

APM agent connects to APM integration (not APM server)  
Is APM Server completely removed from architecture?

Do we need to redirect APM agents to Fleet agent port 8220 ? I am asking this because the wizard to add APM integration is showing 8200 again and it is also asking to check APM server

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [March 16, 2022, 7:50am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/2 "2022-03-16T07:50:10Z")

</div>

> [@swchandu](#):
>
> previous APM server has been changed to legacy and from 8 onwards, we need to migrate it to Fleet APM integration

Just to clarify: although the existing APM Server has been labelled "legacy", it is not yet deprecated. We expect that to come some time later. There is no urgency for migrating, but if you can then it's probably best to do it sooner than later.

> APM agent connects to APM integration (not APM server)  
> Is APM Server completely removed from architecture?

APM Server is still there. The APM Integration is a new deployment architecture: APM Server is now run as a subprocess of Elastic Agent. These subprocesses are referred to as integrations. The new architecture enables central management of APM Server in Kibana, using the Fleet app, among other things.

> Do we need to redirect APM agents to Fleet agent port 8220 ? I am asking this because the wizard to add APM integration is showing 8200 again and it is also asking to check APM server

You should continue using port 8200 as before. I assume from your use of the `docker` tag that you are running the stack in Docker containers. You will need to expose port 8200 in the Elastic Agent container that is running the APM integration.

---

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [March 17, 2022, 4:20am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/3 "2022-03-17T04:20:08Z")

</div>

> [@axw](#):
>
> stack in Docker containers. You will need to expose port 8200 in the Elastic Agent container that is running the APM integration.

Thanks for the reply. I am able to restructure with integration & 8200. Found apmserver binary running in fleet container now.  
However, possibly got stuck with the "Agent authorization" -\> " Anonymous Agent access" -\> Allowed agents.

By default "rum-js, js-base & iOS/swift " are allowed and wildcard is not allowed here.

Can you provide me the list of possible names here.

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [March 17, 2022, 4:48am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/4 "2022-03-17T04:48:28Z")

</div>

> [@swchandu](#):
>
> However, possibly got stuck with the "Agent authorization" -\> " Anonymous Agent access" -\> Allowed agents.
> 
> By default "rum-js, js-base & iOS/swift " are allowed and wildcard is not allowed here.
> 
> Can you provide me the list of possible names here.

What are you trying to do? This anonymous auth config is only relevant if you have either secret token or API Key auth enabled, and you want to allow an agent (such as RUM) to send data to APM Server without authenticating. If you all agents to be able to do this, then just don't enable secret token or API Key auth.

---

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [March 17, 2022, 5:46am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/5 "2022-03-17T05:46:38Z")

</div>

> [@axw](#):
>
> What are you trying to do? This anonymous auth config is only relevant if you have either secret token or API Key auth enabled, and you want to allow an agent (such as RUM) to send data to APM Server without authenticating. If you all agents to be able to do this, then just don't enable secret token or API Key auth.

we are not using any authentication methods as of now. once I've added feet apm(in place of apm server), I could not see the applications under apm services in kibana.  
so, I was assuming that "anonymous" access could be the reason.

As of now, this test env has python django based app.

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [March 17, 2022, 6:17am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/6 "2022-03-17T06:17:02Z")

</div>

Please check the Elastic Agent and APM Agent logs for some clues:

- [View Elastic Agent logs in Fleet | Fleet and Elastic Agent Guide [8.1] | Elastic](https://www.elastic.co/guide/en/fleet/current/elastic-agent-logging.html#agent-view-log-events)
- [Troubleshooting | APM Python Agent Reference [6.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/python/current/troubleshooting.html#django-agent-logging)

---

<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:** [April 7, 2022, 2:17am UTC](https://discuss.elastic.co/t/question-on-apm-architecture-elk-8/299827/7 "2022-04-07T02:17:33Z")

</div>

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