# Why does apm-server not display frontend information on kibana if apm javascript agent accesses requests from ingress

**URL:** <https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605>\
**Category:** APM\
**Tags:** rum\
**Created:** [March 30, 2020, 4:22am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605 "2020-03-30T04:22:36Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [April 15, 2020, 5:07am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/21 "2020-04-15T05:07:31Z")

</div>

When using another output than Elasticsearch (your latest apm-server.yml shows you are using Kafka) you should ensure the index templates, ingest pipelines, etc. are loaded to Elasticsearch before starting to ingest data. You can do so by running

```auto
apm-server setup -E output.elasticsearch.hosts=<your-es-hosts> -E output.elasticsearch.username=<username> -E output.elasticsearch.password=<password>

```

Pass in all the necessary options in a similar way as showed above. The index template will only get applied to new Elasticsearch indices.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [April 15, 2020, 5:53am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/22 "2020-04-15T05:53:24Z")

</div>

@simitt  
Hello simitt, I have mounted apm-server.yml into the container  
[https://paste.ubuntu.com/p/z2Y4w6fNvk/](https://paste.ubuntu.com/p/z2Y4w6fNvk/)

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [April 15, 2020, 11:51am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/23 "2020-04-15T11:51:15Z")

</div>

@simitt  
I found that the sourcemap is not stored correctly, will it affect the kibana app-apm display?

"Unable to determine sourcemap storage, sourcemaps will not be applied"  
[https://paste.ubuntu.com/p/dBhK5C5ydJ/](https://paste.ubuntu.com/p/dBhK5C5ydJ/)

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [April 15, 2020, 1:34pm UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/24 "2020-04-15T13:34:42Z")

</div>

If you do not provide any Elasticsearch configuration, sourcemaps cannot be applied. However that has no impact on displaying APM data in general in Kibana.  
Please see my post above on what you need to consider when working with an output different than Elasticsearch (Kafka in your case).

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [April 16, 2020, 12:45am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/25 "2020-04-16T00:45:14Z")

</div>

I use kafka storage, how to configure sourcemap to elasticsearch?  
If multiple outputs are configured in apm-server.yml, apm-server cannot start normally

What kind of marks are there in the apmserver log for apm-ui to work properly?  
@simitt

apm-server:  
host: "0.0.0.0:8200"  
rum:  
enabled: true  
allow\_origins: '\*'  
source\_mapping.enabled: true

elasticsearch:  
hosts: ["192.168.1.2:9200"]  
username: "elastic"  
password: "xxx"

apm-server.kibana:  
enable: true  
host: "192.168.2.1:5601"  
username: "elastic"  
password: "xxx"  
protocol: http  
path: /kibana

output.kafka:  
enable: true  
hosts: ["192.168.1.1"]  
topics:  
- topic: "apm-span"  
when.contains:  
processor.event: "span"  
- topic: "apm-transaction"  
when.contains:  
processor.event: "transaction"  
- topic: "apm-metric"  
when.contains:  
processor.event: "metric"  
- topic: "apm-error"  
when.contains:  
processor.event: "error"  
- topic: "apm-onboarding"  
when.contains:  
processor.event: "onboarding"  
- topic: "apm-soucemap"  
when.contains:  
processor.event: "sourcemap" #It's strange that I don't see the sourcemap index in kafka  
partition.round\_robin:  
reachable\_only: false  
required\_acks: 1  
codec.json:  
pretty: true  
worker: 2

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [April 16, 2020, 5:40am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/26 "2020-04-16T05:40:37Z")

</div>

You can set an `elasticsearch` configuration directly in the sourcemap config; please refer to the docs for [how to configure elasticsearch for sourcemaps](https://www.elastic.co/guide/en/apm/server/current/configuration-rum.html#config-sourcemapping-elasticsearch).

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [April 16, 2020, 5:44am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/27 "2020-04-16T05:44:04Z")

</div>

I have read the documentation and it requires output.elasticsearch.enable: true

But I already send data to kafka

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [April 16, 2020, 9:07am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/28 "2020-04-16T09:07:22Z")

</div>

From the [sourcemap config docs](https://www.elastic.co/guide/en/apm/server/current/configuration-rum.html#config-sourcemapping-elasticsearch):

> Configure the Elasticsearch source map retrieval location, taking the same options as [output.elasticsearch](https://www.elastic.co/guide/en/apm/server/current/elasticsearch-output.html). This must be set when using an output other than Elasticsearch, and that output is writing to Elasticsearch. Otherwise leave this section empty.

This means that if you use a different output than elasticsearch, you can still configure elasticsearch in `apm-server.rum.source_mapping.elasticsearch.*`.  
So that would mean you configure something like:

```auto
apm-server.rum.source_mapping.elasticsearch:
  hosts: ["localhost:9200"]
  username: "foo"
  password: "changeme"
output.elasticsearch.enabled: false
output.kafka.enabled: true

```

---

<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:** [May 7, 2020, 5:07am UTC](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605/29 "2020-05-07T05:07:31Z")

</div>

Closed on May 7, 2020, 5:07am UTC

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

[Previous page](https://discuss.elastic.co/t/why-does-apm-server-not-display-frontend-information-on-kibana-if-apm-javascript-agent-accesses-requests-from-ingress/225605.md?page=1)
